Opening a report results in error

bayman

Registered User.
Local time
Today, 22:48
Joined
May 25, 2001
Messages
96
I'm attempting to open a report with a simple command:

Code:
DoCmd.OpenReport "rptName", acViewPreview

Executing the command results in a 2501 error. If I open the report from the Navigation Pane, it opens as expected. I'm using Access 2010. I've added code to ignore the 2501 error, which results in nothing happening. Anyone have an idea as to why this might be happening?

Thanks in advance.
 
"Anyone have an idea as to why this might be happening?"

No, not with the negligible amount of information provided.

Did you try opening the report without the preview? Does the report contain any code? What is the recordsource for the report?
 
"Anyone have an idea as to why this might be happening?"

No, not with the negligible amount of information provided.

Did you try opening the report without the preview? Does the report contain any code? What is the recordsource for the report?


Tried opening without preview. Same error.

Report contains no code.

Recordsource is a linked SQL table.
 

Users who are viewing this thread

Back
Top Bottom