I have a bound form with a bunch of textboxes and a listbox.
After I requery the listbox, I set Listbox.Selected(0) = True, which, up until recently, caused the Listbox.AfterUpdate event to fire (which positions the record pointer and, voila, the selected record from the listbox is shown on the form).
This was working just fine until recently, but something happened -- I don't know what -- and now the AfterUpdate event doesn't fire when I set Selected(0) = True.
Is it supposed to fire or was it a fluke when it was firing? I've tried repairing the database to no avail. I'd hate to have a hidden flag on the form to show if the record pointer has moved, but if this is going to be so inconsistent, that seems the only option.
Thoughts?
Thanks
After I requery the listbox, I set Listbox.Selected(0) = True, which, up until recently, caused the Listbox.AfterUpdate event to fire (which positions the record pointer and, voila, the selected record from the listbox is shown on the form).
This was working just fine until recently, but something happened -- I don't know what -- and now the AfterUpdate event doesn't fire when I set Selected(0) = True.
Is it supposed to fire or was it a fluke when it was firing? I've tried repairing the database to no avail. I'd hate to have a hidden flag on the form to show if the record pointer has moved, but if this is going to be so inconsistent, that seems the only option.
Thoughts?
Thanks