archer_coal
Well-known member
- Joined
- Apr 4, 2003
- Messages
- 96
I have a listbox bound to an oledb data connection with command buttons for delete and add.
When the user selects an item and clicks on delete, the record is deleted fine but i cant get the listbox to show the changes without error.
If i reload the listbox and its binding, it shows the previous items as well as the reloaded data.
If i refresh the listbox nothing happens.
If i try to use somthing like Listbox1.item.clear I get an error telling me i cannot clear when the datasource is set.
How do i update the listbox to show the changes made after delete?
When the user selects an item and clicks on delete, the record is deleted fine but i cant get the listbox to show the changes without error.
If i reload the listbox and its binding, it shows the previous items as well as the reloaded data.
If i refresh the listbox nothing happens.
If i try to use somthing like Listbox1.item.clear I get an error telling me i cannot clear when the datasource is set.
How do i update the listbox to show the changes made after delete?