T
Tony Girgenti
Hello.
Using Access 2002 on Windows XP Pro, SP2 computer.
When running the code at the end of this post, it blows up on the
DoCmd.OpenReport with error 2501.
I can't figure out why. I tried searching for that error with no luck.
This problem only occurs on one computer. The same program works for
everyone else on the LAN. It is being run from a network drive.
Any help would be gratefully appreciated.
Thanks,
Tony
If strWhere = " " Then
DoCmd.OpenReport stDocName, acViewPreview
Else
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
End If
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
If Err.Number <> 2501 Then
MsgBox Err.DESCRIPTION
End If
On Error GoTo 0
Resume Exit_Command2_Click
End Sub
Using Access 2002 on Windows XP Pro, SP2 computer.
When running the code at the end of this post, it blows up on the
DoCmd.OpenReport with error 2501.
I can't figure out why. I tried searching for that error with no luck.
This problem only occurs on one computer. The same program works for
everyone else on the LAN. It is being run from a network drive.
Any help would be gratefully appreciated.
Thanks,
Tony
If strWhere = " " Then
DoCmd.OpenReport stDocName, acViewPreview
Else
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
End If
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
If Err.Number <> 2501 Then
MsgBox Err.DESCRIPTION
End If
On Error GoTo 0
Resume Exit_Command2_Click
End Sub