Try inserting the following at the beginning of the event.
For ADO:
If recordset.EOF then
Exit Sub
End If
For DAO:
If recordset.NoMatch then
Exit Sub
End If
this will check if the find succeeded before running any other code. Hope it helps.
|
Results 1 to 4 of 4
Thread: Highlight Row in DataGridThreaded View
|
Click Here to Expand Forum to Full Width |