Christine Pearc
Christine
- Local time
- Today, 17:06
- Joined
- May 13, 2004
- Messages
- 111
I have a form, frmReviewSearch, that is based on a query. The OnOpen Event for the form is
Sometimes when you open the form, it says there aren't any records. Close the form, open it again, and the message doesn't pop up. In each case, the records in the subform appear okay.
Note: The subform uses the same query as the main form. The only difference is that the results in the subform can be filtered further based on search criteria set in the main form.
Does anyone have any clues what is wrong.
If it makes a difference, the dB is split and is on a LAN in a multi-user environment.
Cheers,
Christine
Code:
If Me.Recordset.RecordCount = 0 Then
MsgBox "Nothing to find.", vbInformation, "No Data"
DoCmd.Close
End If
Note: The subform uses the same query as the main form. The only difference is that the results in the subform can be filtered further based on search criteria set in the main form.
Does anyone have any clues what is wrong.
If it makes a difference, the dB is split and is on a LAN in a multi-user environment.
Cheers,
Christine