B
BAO
I cannot suppress the 2501 error message when cancelling the parameter input.
Please help!
Here is my code:
Private Sub Command88_Click()
On Error GoTo Err_Command88_Click
Dim stDocName As String
stDocName = "rptPrint_F_RecRpt_TransCksSingleCk"
DoCmd.OpenReport stDocName, acViewPreview, , , acWindowNormal
Exit_Command88_Click:
Exit Sub
Err_Command88_Click:
If Err.Number = 2501 Then
'do nothing
Else: MsgBox Err.Description
Resume Exit_Command88_Click
End If
End Sub
Please help!
Here is my code:
Private Sub Command88_Click()
On Error GoTo Err_Command88_Click
Dim stDocName As String
stDocName = "rptPrint_F_RecRpt_TransCksSingleCk"
DoCmd.OpenReport stDocName, acViewPreview, , , acWindowNormal
Exit_Command88_Click:
Exit Sub
Err_Command88_Click:
If Err.Number = 2501 Then
'do nothing
Else: MsgBox Err.Description
Resume Exit_Command88_Click
End If
End Sub