J
Junior
Access2K -how can i modify this code to eliminate the
"OpenReport Action was cancelled" when there is no data
and Peport NoData event has Cancel=True
Private Sub cmdovrdue_Click()
On Error GoTo Err_HandleErr_Click
DoCmd.OpenReport "rptCertTrack", acPreview, "", ""
Exit_HandleErr_Click:
Exit Sub
Err_HandleErr_Click:
MsgBox Error$
Resume Exit_HandleErr_Click
"OpenReport Action was cancelled" when there is no data
and Peport NoData event has Cancel=True
Private Sub cmdovrdue_Click()
On Error GoTo Err_HandleErr_Click
DoCmd.OpenReport "rptCertTrack", acPreview, "", ""
Exit_HandleErr_Click:
Exit Sub
Err_HandleErr_Click:
MsgBox Error$
Resume Exit_HandleErr_Click