On a form with a listbox which the user views almost constantly, how can I deal with deleted records?
They will show as #Deleted, of course. If the user clicks on that row, the After_Update code runs. Bad things happen, as you can imagine.
Is there a way to detect whether a record in that recordset has been deleted, so that I can issue a requery?
I don't want to use a manual requery button...which would do little good anyway if a user clicks on the #Deleted row. I can trap the resulting error if necessary, but am looking for something more seamless. Any ideas?
Many thanks
They will show as #Deleted, of course. If the user clicks on that row, the After_Update code runs. Bad things happen, as you can imagine.
Is there a way to detect whether a record in that recordset has been deleted, so that I can issue a requery?
I don't want to use a manual requery button...which would do little good anyway if a user clicks on the #Deleted row. I can trap the resulting error if necessary, but am looking for something more seamless. Any ideas?
Many thanks