thenextguy
Board Regular
- Joined
- Sep 19, 2004
- Messages
- 72
I'm developing a contact database and I'd like to have multi-select listbox (on a subform) on my forms to select which categories they belong to (friends, business contacts, christmas card mailing list, etc.).
I have three tables to accomplish this.
tblContact
tblCategoryType
tblCategoryDetail
...where tblCategoryDetail acts as the bridge to create the many-to-many relationship between tblContact & tblCategoryType.
My question is how can I pass the data selected in the listbox to the tblcategorydetail table (or from the tblCategoryDetail to the listbox when the record changes on the main form).
Right now I'm planning on using a query to populate the listbox everytime the record changes on the main form, and then using a delete and/or update query everytime the listbox is changed or when the form is saved.
This seems like a rather complicated way to do it. Are there any better ways?
Thanks for reading and to anyone who might offer suggestions.
I have three tables to accomplish this.
tblContact
tblCategoryType
tblCategoryDetail
...where tblCategoryDetail acts as the bridge to create the many-to-many relationship between tblContact & tblCategoryType.
My question is how can I pass the data selected in the listbox to the tblcategorydetail table (or from the tblCategoryDetail to the listbox when the record changes on the main form).
Right now I'm planning on using a query to populate the listbox everytime the record changes on the main form, and then using a delete and/or update query everytime the listbox is changed or when the form is saved.
This seems like a rather complicated way to do it. Are there any better ways?
Thanks for reading and to anyone who might offer suggestions.