In my report_nodata event I have the following code:
And in the code for the form calling the report I have:
Yet the 2501 error is still appearing! Can anybody help?
Code:
Private Sub Report_NoData(Cancel As Integer)
On Error GoTo Err_handle
Cancel = True
Exit_repnodata:
Exit Sub
Err_handle:
Resume Exit_repnodata
End Sub
And in the code for the form calling the report I have:
Code:
On Error GoTo Err_handle
DoCmd.OpenReport "rptWeeklyDetails", acViewPreview
Exit_cmdWeek:
Exit Sub
Err_handle:
If Err = 2501 Then
Err.Clear
Else: MsgBox Err.Description
End If
Resume Exit_cmdWeek
End Sub
Yet the 2501 error is still appearing! Can anybody help?