-
Jun 16th, 2010, 04:09 AM
#1
Thread Starter
Lively Member
[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
-
Jun 16th, 2010, 04:12 AM
#2
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.
-
Jun 16th, 2010, 06:06 AM
#3
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.
-
Jun 16th, 2010, 06:07 AM
#4
Lively Member
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
My Programming Software: Visual Basic 2010
My Database Program: Office Access 2010
-
Jun 16th, 2010, 03:21 PM
#5
Thread Starter
Lively Member
Re: Combo box won't save changes
Thank you
That makes sense now, I know what to do
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|