Multiple checkbox update
I have 5 table in my database. One to store resort information 'resortdetails', one to store the names of amenities 'amenities' and 3 which tie the 2 together 'amenitiesonsite', 'amenitesunit', amenitiesother' . These are identicle in structure and store the resort id and the amenities id.
For example a resort have multiple unit amenities, multiple onsite amenities and multiple other amenities.
I have created an insert page that lists all the amenities from the amenities table as checkboxes and then once an amenity is checked it will get uploaded to one of the databases 'amenitiesonsite', 'amenitesunit', amenitiesother' (there are 3 multiple inserts on the page)
Now I am trying to create the update page. I have created 3 recordsets to pull in all the amenities from the amenities table (1 may have done for all of them but to make it easier for me to understand I have created 3 identicle ones - naming them differently)
Each of these are repeated checkboxes.
I have created 3 other recordsets to pull in the amenities that are stored in the 3 tables 'amenitiesonsite', 'amenitesunit', amenitiesother'. Using the resort ID that is passed from the previous page (S_resortID).
I have tried to dynamically bind the checkboxes so that if a value from the amenities table matches one from the amenitesunit table mark the checkbox as checked.
This works so far as it checks a correct amenity for each of the tables however it only checks one amenity even if there are numerous in the amenitesunit table for that resort. I guess it needs to repeat the recordset somehow - but I don't have a clue where to start.
I have attached the file.