If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
One Form - multiple entries
Hi all,
I'm trying to creat a Form which will let me just enter all the data once and create multiple entries into the table. My database looks like this: tbl-Players PlayerName - PK //I've created 8 players. Unlikely to be too many more added. tbl-Games Game# - PK Date 1st Place 2nd Place 3rd Place tbl-Plays // This table maps the relationship between Players and Games. As Players "plays" Games. PlayerName - FK Game# - FK BuyIn Here's what I'm trying to do. I want to create a form which has the following attributes: 1. Game # 2. 1st Place 3. 2nd Place 4. 3rd Place 5. Attendee#1 (basically a Player who attends) 6. Attendee#2 7. Attendee#3 (and so on) Then, when I hit submit, the "tbl-Plays" should update with all the players who played at the game. The idea is this: We play 4 games a night with 8 players. If I manual entry the "tbl-Plays" table, it will take 4x8 entries = 32 times. If I can get a Form which lists all my players, I can simply do a "check-box" or "a button" to select my players. Much easier than entering data 32 times. Any help would be appreciate. thanks |
#2
|
|||
|
|||
One Form - multiple entries
Sorry, afterall that, I forgot to ask my question.
Which is, is this possible? "yi-chan" wrote in message ... Hi all, I'm trying to creat a Form which will let me just enter all the data once and create multiple entries into the table. My database looks like this: tbl-Players PlayerName - PK //I've created 8 players. Unlikely to be too many more added. tbl-Games Game# - PK Date 1st Place 2nd Place 3rd Place tbl-Plays // This table maps the relationship between Players and Games. As Players "plays" Games. PlayerName - FK Game# - FK BuyIn Here's what I'm trying to do. I want to create a form which has the following attributes: 1. Game # 2. 1st Place 3. 2nd Place 4. 3rd Place 5. Attendee#1 (basically a Player who attends) 6. Attendee#2 7. Attendee#3 (and so on) Then, when I hit submit, the "tbl-Plays" should update with all the players who played at the game. The idea is this: We play 4 games a night with 8 players. If I manual entry the "tbl-Plays" table, it will take 4x8 entries = 32 times. If I can get a Form which lists all my players, I can simply do a "check-box" or "a button" to select my players. Much easier than entering data 32 times. Any help would be appreciate. thanks |
#3
|
|||
|
|||
One Form - multiple entries
Yes, it is possible. Look into using a multiselect listbox to add players to
games. Also, you might want to consider reworking your tables. tblPlayers PlayerID PK - autonum PlayerName tblGames GameID PK - autonum GameName tblRankings RankNum PK - integer '8 entries tblPlays PlayID PK - autonum GameID GameNumber PlayDate tblGameParticipants PlayID --| PlayerID --|--- Composite Key RankNum --| You could base your main form on tblPlays, and your subform on tblGameParticipants setting PlayID as the master/child links.Put a multiselect listbox on your main form showing available players name. Then use a command button to run an append query to add the player's ID and PlayID into tblGameParticipants. That way, all you have to input is their ranking at the end of the game. And since RankNum would be part of the composite key, it won't allow for duplicate rankings per player per game. HTH, Brian "yi-chan" wrote in message ... Sorry, afterall that, I forgot to ask my question. Which is, is this possible? "yi-chan" wrote in message ... Hi all, I'm trying to creat a Form which will let me just enter all the data once and create multiple entries into the table. My database looks like this: tbl-Players PlayerName - PK //I've created 8 players. Unlikely to be too many more added. tbl-Games Game# - PK Date 1st Place 2nd Place 3rd Place tbl-Plays // This table maps the relationship between Players and Games. As Players "plays" Games. PlayerName - FK Game# - FK BuyIn Here's what I'm trying to do. I want to create a form which has the following attributes: 1. Game # 2. 1st Place 3. 2nd Place 4. 3rd Place 5. Attendee#1 (basically a Player who attends) 6. Attendee#2 7. Attendee#3 (and so on) Then, when I hit submit, the "tbl-Plays" should update with all the players who played at the game. The idea is this: We play 4 games a night with 8 players. If I manual entry the "tbl-Plays" table, it will take 4x8 entries = 32 times. If I can get a Form which lists all my players, I can simply do a "check-box" or "a button" to select my players. Much easier than entering data 32 times. Any help would be appreciate. thanks |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Form with Multiple Subforms? or Command Button?? | jwr | Using Forms | 2 | October 7th, 2005 08:58 PM |
Problem converting a form with multiple tabs to a single form... | Rashar Sharro via AccessMonster.com | Using Forms | 3 | July 5th, 2005 04:13 AM |
Creating a form w/ multiple parameters to retrieve data only | DGregg | New Users | 0 | June 28th, 2005 12:11 AM |
Requerying a pop up form to display in the main form | Jennifer P | Using Forms | 13 | April 5th, 2005 06:59 PM |
Need to clear controls of Filter form | Jan Il | Using Forms | 2 | November 28th, 2004 02:04 PM |