Hi I added the following into the Click event of a command before the Exit Sub
It works but will also return the msgbox and close even when records are found. Please advise.
Many thanks
Code:
If RecordCount = 0 Then
MsgBox "No records found?"
DoCmd.Close
End If
It works but will also return the msgbox and close even when records are found. Please advise.
Many thanks