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?
 
Top