I am stuck on this...
I have a query("Marketing Partner Query" that pulls its results into a form("Invoices_Search". All I want to do is have a msgbox appear if there are no results.
I don't think I have the syntax right,
DoCmd.OpenForm "Invoices_Search"
Forms!Invoices_Search.RecordSource = "Marketing Partner Query"
If "Marketing Partner Query" < 1 Then
MsgBox "No Results Found! Please Try Again.", vbOKOnly, "NO SEARCH RESULTS"
End If
THANKS IN ADVANCE FOR ANY HELP!
I have a query("Marketing Partner Query" that pulls its results into a form("Invoices_Search". All I want to do is have a msgbox appear if there are no results.
I don't think I have the syntax right,
DoCmd.OpenForm "Invoices_Search"
Forms!Invoices_Search.RecordSource = "Marketing Partner Query"
If "Marketing Partner Query" < 1 Then
MsgBox "No Results Found! Please Try Again.", vbOKOnly, "NO SEARCH RESULTS"
End If
THANKS IN ADVANCE FOR ANY HELP!