[RESOLVED] Combo box won't save changes
I have a combo box that I can delete and add items using a command button, however when I run the program the next time the changes are gone.
Since I have to ask here for help i will go all out and ask how I can have a new item typed directly into the combo box and have the combo box check to see if there is a duplicate name, if no then automatically add it.
I will put a delete button next to it with this code
Combo1.RemoveItem Combo1.ListIndex
However I need it to save the changes. So far it won't
Re: Combo box won't save changes
How are you populating the combo box? If it is from a database you need to make the changes there or whereever your getting the values from.
Re: Combo box won't save changes
The program won't save anything. Those value have to be saved to an external file (like a database) and then read in each time your program runs.
Re: Combo box won't save changes
I'd recommend trying this one to learn working with databases:
http://www.vbforums.com/showthread.php?t=551154
It requires an Office Access 2003 Database
It helped me a lot! just copy all the code into a new project, and test it. That way you can ajust it to whatever suits your needs.
Good Luck
Re: Combo box won't save changes
Thank you
That makes sense now, I know what to do