I'm in a form with a button click to another form based on a qurey.
If there is no data in the query/form I would like a messge box to pop up. I have seen the code for a report but I cannot use that same code in a form. Can someone help?
I have tried this: No luck
Private Form_NoData(Cancel As Integer)
MsgBox "There is no data for this report"
Cancel = True
End Sub
If there is no data in the query/form I would like a messge box to pop up. I have seen the code for a report but I cannot use that same code in a form. Can someone help?
I have tried this: No luck
Private Form_NoData(Cancel As Integer)
MsgBox "There is no data for this report"
Cancel = True
End Sub