V
Vic
I have an Access database for 8 users. Only one user is
having trouble opening a report and the other users are
not. I'm using a command button to execute the report
and the error is "Run-time error '2501'; The OpenReport
action was canceled.". My code is below and I'm using
Access 2003. Please help, I've spent a lot of time
trying to figure this out and I can't. I don't
understand why he gets the error and the rest of the
users do not.
Private Sub cmdPRReport_Click()
On Error GoTo Err_cmdPRReport_Click
Dim stDocName As String
stDocName = "PR REPORT"
DoCmd.OpenReport stDocName, acPreview
Exit_cmdPRReport_Click:
Exit Sub
Err_cmdPRReport_Click:
MsgBox Err.Description
Resume Exit_cmdPRReport_Click
End Sub
having trouble opening a report and the other users are
not. I'm using a command button to execute the report
and the error is "Run-time error '2501'; The OpenReport
action was canceled.". My code is below and I'm using
Access 2003. Please help, I've spent a lot of time
trying to figure this out and I can't. I don't
understand why he gets the error and the rest of the
users do not.
Private Sub cmdPRReport_Click()
On Error GoTo Err_cmdPRReport_Click
Dim stDocName As String
stDocName = "PR REPORT"
DoCmd.OpenReport stDocName, acPreview
Exit_cmdPRReport_Click:
Exit Sub
Err_cmdPRReport_Click:
MsgBox Err.Description
Resume Exit_cmdPRReport_Click
End Sub