H
Han
I have a form that contains four combo boxes, which get their values from
the same table. Visibility is set to FALSE by default. The number of records
returned will determine how many combo boxes are shown (Visibility = TRUE).
I have two tables. The first is read-only and contains a list of activities:
ActivityID = 1, ActivityType = "Sailing"
ActivityID = 2, ActivityType = "Bowling"
ActivityID = 3, ActivityType = "Skating"
The second table contains the user's choices:
DayID = 1, ActivityID=1
DayID = 1, ActivityID=2
DayID = 1, ActivityID=3
DayID = 2, ActivityID=1
DayID = 2, ActivityID=2
DayID = 3, ActivityID=2
Let's say my query looks like this:
SELECT Activities.ActivityType FROM Choices, Activities WHERE
Choices.DayID=1
This would return 3 records.
As a result, I need to accomplish the following:
1) make visible 3 combo boxes filled with values
2) set the value to the current choice
3) save any selection changes
#1 is easy, but 2 and 3 have me stumped. If the Control Source is set to
"ActivityID", all three combo boxes are referring to the first record.
Any help would be greatly appreciated.
Thanks,
Han
the same table. Visibility is set to FALSE by default. The number of records
returned will determine how many combo boxes are shown (Visibility = TRUE).
I have two tables. The first is read-only and contains a list of activities:
ActivityID = 1, ActivityType = "Sailing"
ActivityID = 2, ActivityType = "Bowling"
ActivityID = 3, ActivityType = "Skating"
The second table contains the user's choices:
DayID = 1, ActivityID=1
DayID = 1, ActivityID=2
DayID = 1, ActivityID=3
DayID = 2, ActivityID=1
DayID = 2, ActivityID=2
DayID = 3, ActivityID=2
Let's say my query looks like this:
SELECT Activities.ActivityType FROM Choices, Activities WHERE
Choices.DayID=1
This would return 3 records.
As a result, I need to accomplish the following:
1) make visible 3 combo boxes filled with values
2) set the value to the current choice
3) save any selection changes
#1 is easy, but 2 and 3 have me stumped. If the Control Source is set to
"ActivityID", all three combo boxes are referring to the first record.
Any help would be greatly appreciated.
Thanks,
Han