Here's my situation. I have an Access Database that has 3 tables; Users, Interests, and Interests_Log. Each user int he Users table has a User_ID, and each interest in the Interests table has an Interest_ID, as well as an Interest_Name. The Interests_Log table consists of a composite key: User_ID and Interest_ID.
What I want to be able to do here is when someone is editing a user's interests, to be able to see a CheckedListBox that contians the interests from the Interests table. If the Interests_Log table contains any Interest_ID's for the selected User_ID, then those items should be checked when the form loads. If the user clicks on an Interest that was not previously checked, I'd like it to add a new row to the Interests_Log table that would consist of the current User_ID and the Interest_ID of the newly checked item(s).
I can get as far as setting the datasource, display member, and value member of the CheckedListBox. I just can't figure out a way to make the CheckedListBox do what I want it to. Could someone please help me with this? It would be greatly appreciated. Thanks!
What I want to be able to do here is when someone is editing a user's interests, to be able to see a CheckedListBox that contians the interests from the Interests table. If the Interests_Log table contains any Interest_ID's for the selected User_ID, then those items should be checked when the form loads. If the user clicks on an Interest that was not previously checked, I'd like it to add a new row to the Interests_Log table that would consist of the current User_ID and the Interest_ID of the newly checked item(s).
I can get as far as setting the datasource, display member, and value member of the CheckedListBox. I just can't figure out a way to make the CheckedListBox do what I want it to. Could someone please help me with this? It would be greatly appreciated. Thanks!