stefanheller
New member
- Local time
- Today, 12:42
- Joined
- Jan 27, 2004
- Messages
- 5
sigh - yet again Multi Select List Box
Hi - hope someone can help!
I am very new to database design and especially VB code. I am trying to get a mutliselect list box functioning, but after reading a lot of the posts here and trying to knock something together myself, I have FAILED!
The database is for a travel firm (a friend of mine). The main form is made up from quite a few different tables (to try and keep it modular) and their recent request was for "a visible list box that you can select one or more of the items on within the main form"
The list box was created as a table with a primary key and has a relationship with the main part of the form (which is the "company form") - many to one. This list is the "client product list".
1. I need to be able to select one or multiple items for each company record and this needs to be saved (in a table?)
2. Currently the data will not save or change from record to record if you select option 2,3 and 4 from the list box, ALL the records have these same options selcted (ie highlighted) - so each record must have a unique list of items highlighted (even if they are possibly the same choices as another record).
3. They will then want to search on one or more of the items from the list box and print a mailing list (or email list) that they can then mass email / mail info to.
I think I need to create a unique table to store the data in that has been selected from the list box... but what VB code do I need...and would I not also need to run some sort of query to update this table after every record has been changed / edited???
Hope someone understands this/ can help me etc etc etc
Thanks
Hi - hope someone can help!
I am very new to database design and especially VB code. I am trying to get a mutliselect list box functioning, but after reading a lot of the posts here and trying to knock something together myself, I have FAILED!
The database is for a travel firm (a friend of mine). The main form is made up from quite a few different tables (to try and keep it modular) and their recent request was for "a visible list box that you can select one or more of the items on within the main form"
The list box was created as a table with a primary key and has a relationship with the main part of the form (which is the "company form") - many to one. This list is the "client product list".
1. I need to be able to select one or multiple items for each company record and this needs to be saved (in a table?)
2. Currently the data will not save or change from record to record if you select option 2,3 and 4 from the list box, ALL the records have these same options selcted (ie highlighted) - so each record must have a unique list of items highlighted (even if they are possibly the same choices as another record).
3. They will then want to search on one or more of the items from the list box and print a mailing list (or email list) that they can then mass email / mail info to.
I think I need to create a unique table to store the data in that has been selected from the list box... but what VB code do I need...and would I not also need to run some sort of query to update this table after every record has been changed / edited???
Hope someone understands this/ can help me etc etc etc
Thanks