P
Pele
Below is a code that I need modified.
Can anybody tell me what changes I need to make to this
code to make it CLOSE the form and STOP a macro INSTEAD of
displaying a message box like it presently does.
Basically, I want the code to close the form instead of
displaying the message. Any help will be appreciated.
Pele
Public Sub Arethereanyrecords(frmName As Form)
If frmName.RecordsetClone.RecordCount = 0 Then
MsgBox "Your query request has returned no records....You
will need to increase your query limit.",
vbInformation, "No Records in Query"
End If
End Sub
Public Function fnArethereanyrecords(frmName As Form)
Call Arethereanyrecords(frmName)
End Function
Can anybody tell me what changes I need to make to this
code to make it CLOSE the form and STOP a macro INSTEAD of
displaying a message box like it presently does.
Basically, I want the code to close the form instead of
displaying the message. Any help will be appreciated.
Pele
Public Sub Arethereanyrecords(frmName As Form)
If frmName.RecordsetClone.RecordCount = 0 Then
MsgBox "Your query request has returned no records....You
will need to increase your query limit.",
vbInformation, "No Records in Query"
End If
End Sub
Public Function fnArethereanyrecords(frmName As Form)
Call Arethereanyrecords(frmName)
End Function