Updating Combo list after inserting new record
Posted on 2005-03-30
I have a form that has a combo box who's list has Customers. This is bound to a data adapter during form load. The code is:
I have a button that brings up a New Cutomer form that successfully adds a new Customer to the database. No problem from a DB standpoint.
Once the new customer is added however, I need to refresh the Customer combo box list to show the newly added customer. If I .Fill again, the list is appended to.
I can't figure out how to do this, so help is appreciated. I hope I'm using the DataAdapter & ComboBox correctly.