T
Tony Wainwright
Hi guys
I have the following section in each of my reports to elegantly deal with no data situations
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No data found! Closing report."
DoCmd.SetWarnings False
Cancel = True
DoCmd.SetWarnings True
End Sub
However after the 'No data found message' I get a message box with this message:
'The OpenReport action was cancelled.'
How do I stop this happening
Tony
I have the following section in each of my reports to elegantly deal with no data situations
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No data found! Closing report."
DoCmd.SetWarnings False
Cancel = True
DoCmd.SetWarnings True
End Sub
However after the 'No data found message' I get a message box with this message:
'The OpenReport action was cancelled.'
How do I stop this happening
Tony