I highlight a record in a listbox, and then I use DAO to delete the record from the table. My code then goes on to requery the list box to make the deleted record disappear from the list box.
Only problem is, that record does not disappear. If I place a cmdButton on the form to requery the list box again, only then does the deleted record disappear.
I guess that Access takes some time to update the table, so the list box is getting requeried before the table has a chance to delete the record.
Any ideas how I can make this code work right?
Thanks,
Jack
Only problem is, that record does not disappear. If I place a cmdButton on the form to requery the list box again, only then does the deleted record disappear.
I guess that Access takes some time to update the table, so the list box is getting requeried before the table has a chance to delete the record.
Any ideas how I can make this code work right?
Thanks,
Jack