Hello, I have a database with a userform that's used for data entry. Each record is for a product, and there are 15 checkboxes for the countries that can be selected for each product.
In the past, I would have created 15 yes/no fields in the database (1 for each country). But I know that's not the right way to do it. What I (think I) want is to have a PRODUCT_COUNTRY table with 2 fields: PRODUCT_ID and COUNTRY_ID. Here I would just populate them according to the checkboxes that were checked (there would be a record if it was checked, and no record if it was not checked).
My question is, how would I accomplish this in Access? Would I need an IF statement for each checkbox with an INSERT query to add it to the table if it was not there, and a DELETE query to remove it if the box was unchecked? I've seen Oracle databases used in web applications where this is done, but I'm struggling with finding the best way of handling it in Access. How are you all doing it?