Hi,
I have a command button on a form that filters and opens a report. In the event that the report is empty, I have this,
The problem is the command button still trys to open the report with the filtered criteria. What is the best way around this please? Thank you!
I have a command button on a form that filters and opens a report. In the event that the report is empty, I have this,
Code:
MsgBox "There are no records that match the " & _
"selected criteria." & vbLf & vbLf & _
"Please try again", vbInformation, "GSA"
Cancel = True
The problem is the command button still trys to open the report with the filtered criteria. What is the best way around this please? Thank you!