OutputTo Results in Error 2501

J

JimP

When using the following code on a specific report, I'm getting an error
2501 "The OuputTo action was canceled". Some reports OutputTo fine - there
must be something about the code in this report. Any suggestions?

DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _
strPathandFileName
 
J

JimP

Here's what's causing the problem. I'm setting the RecordSource for a
SubReport in the OnOpen event. Is there an obvious work around?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top