Results 1 to 5 of 5

Thread: [RESOLVED] Combo box won't save changes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2010
    Posts
    80

    Resolved [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

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,834

    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.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  4. #4
    Lively Member
    Join Date
    Apr 2010
    Location
    Netherlands
    Posts
    97

    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2010
    Posts
    80

    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
  •  



Click Here to Expand Forum to Full Width