>I have a combo box that lists codes. When I delete a code by clicking on the delete button, the code is no longer in the list. However when I close the program & run it again, the deleted code is back in the list. What am I doing wrong?
>
In addition to what Evan pointed out, are you deleing the entry in the ComboBox's list of available values, or deleting and removing the record from the table that supplies the values used to populate the ComboBox?
If you're using a query to populate the listbox, and the deletion is not reflected back to the original table, it'll appear again whenever the query gets updated. If the query doesn't filter out deleted records, it'll get included each time as well.