DavidWRouse
Registered User.
- Local time
- Today, 03:00
- Joined
- Jul 24, 2003
- Messages
- 42
I cannot get rid of a Warning box saying "The OpenReport was action was cancelled", I dont want this message.
Follwing is my routine..
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo Err_Report_NoData
DoCmd.SetWarnings (WarningsOff)
Cancel = True
DoCmd.SetWarnings (WarningsOn)
Exit_Report_NoData:
Exit Sub
Err_Report_NoData:
MsgBox Err.Description, , "APPLICATIONS"
Resume Exit_Report_NoData
End Sub
Follwing is my routine..
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo Err_Report_NoData
DoCmd.SetWarnings (WarningsOff)
Cancel = True
DoCmd.SetWarnings (WarningsOn)
Exit_Report_NoData:
Exit Sub
Err_Report_NoData:
MsgBox Err.Description, , "APPLICATIONS"
Resume Exit_Report_NoData
End Sub