G
goraya
hi
I have a access database with some reports. All reports are working
fine except one. When I click Priview or Print window I get the error
"Report Action was canceled" and the error number is 2501. I try to
ignore the error but report does not open. Any help in this regard.
Here is my code.
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
Dim stDocName As String
stDocName = "Cash Voucher"
DoCmd.OpenReport stDocName, acPreview
ComeHere:
Err_Command15_Click:
If Err.Number = 2501 Then
Resume ComeHere
End If
Any help in this regard ??
Thnx in advance.
I have a access database with some reports. All reports are working
fine except one. When I click Priview or Print window I get the error
"Report Action was canceled" and the error number is 2501. I try to
ignore the error but report does not open. Any help in this regard.
Here is my code.
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
Dim stDocName As String
stDocName = "Cash Voucher"
DoCmd.OpenReport stDocName, acPreview
ComeHere:
Err_Command15_Click:
If Err.Number = 2501 Then
Resume ComeHere
End If
Any help in this regard ??
Thnx in advance.