OutputTo in Runtime 2007

J

John Penketh

Does anyone know how to solve this?
The OutputTo method doesn't work in Access 2007 Runtime if the object being
output is a report.
For example the code below, where RichTextFolder and strFilename are text
strings:

DoCmd.OutputTo acOutputReport, strReportName, acFormatRTF, RichTextFolder _
& "\" & strFileName & ".rtf", False

results in an error message "Can't complete the operation" (no error code).
The same code works perfectly in the full version of Access 2007.

Incidentally, it's only when using the acOutputReport argument that trouble
ensues. Other outputs works fine.
 

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