Moonshine
Registered User.
- Local time
- Today, 08:00
- Joined
- Jan 29, 2003
- Messages
- 125
Hi All, i think its going to be a For Each statement, but i could be wrong 
Im setting up a small database, its got 2 tables at the moment, table 1 is Customer Details. Holds Name, Address, Contact Details and the like. Table 2 is a "Sport" table, basically lists the type of sports that the customer likes.
On the main customer add form there are 12 tick boxes, if the customer likes say Snowboard, Skiing and BMX'ing you tick those three boxes. If the customer like 7 sports, you stick 7 boxes and so on...
What i need to be able to do is cycle through those 12 boxes and add a seperate record to a 3rd table. This table holds the Unique Customer id, and all the sports the customer likes.
So, table 1 would have 1 record with its unique Customer ID. Table 2 could have 3 records for sports, containing the unique Customer ID and a Unique "Sport" ID.
Is a For Each the best way to add each record to Table 2? All the check boxes have "Sport" in their name, so it could be a For Each chk Like(*Sport*) or something?
Im setting up a small database, its got 2 tables at the moment, table 1 is Customer Details. Holds Name, Address, Contact Details and the like. Table 2 is a "Sport" table, basically lists the type of sports that the customer likes.
On the main customer add form there are 12 tick boxes, if the customer likes say Snowboard, Skiing and BMX'ing you tick those three boxes. If the customer like 7 sports, you stick 7 boxes and so on...
What i need to be able to do is cycle through those 12 boxes and add a seperate record to a 3rd table. This table holds the Unique Customer id, and all the sports the customer likes.
So, table 1 would have 1 record with its unique Customer ID. Table 2 could have 3 records for sports, containing the unique Customer ID and a Unique "Sport" ID.
Is a For Each the best way to add each record to Table 2? All the check boxes have "Sport" in their name, so it could be a For Each chk Like(*Sport*) or something?