By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,903 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,903 IT Pros & Developers. It's quick & easy.

OutputTo RTF Problem - Access 2007

P: n/a
I have a function in Access 2007 that runs the following code:

DoCmd.OutputTo acOutputReport, "rpt-TOC Summary", "Rich Text Format
(*.rtf)", "C:\TOC\Working\PRE-X08-0295.doc", False

When I run this code in an mdb file, it executes with no problems.

When I execute the same function when compiled in an mde file, I get
Error Number "438" (Object doesn't support this property or method).

Does anyone know why this would happen?

Thank you.

Jul 31 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 31 Jul 2008 12:44:41 -0700 (PDT), Icarus <tj******@gmail.com>
wrote:

It's possible that a space character was lost in the formatting. To be
safe, rewrite this as:
DoCmd.OutputTo acOutputReport, "rpt-TOC Summary", acFormatRTF,
"C:\TOC\Working\PRE-X08-0295.doc", False

-Tom.
Microsoft Access MVP

>I have a function in Access 2007 that runs the following code:

DoCmd.OutputTo acOutputReport, "rpt-TOC Summary", "Rich Text Format
(*.rtf)", "C:\TOC\Working\PRE-X08-0295.doc", False

When I run this code in an mdb file, it executes with no problems.

When I execute the same function when compiled in an mde file, I get
Error Number "438" (Object doesn't support this property or method).

Does anyone know why this would happen?

Thank you.
Aug 1 '08 #2

P: n/a
Have you had a look at Stephen Lebans ReportSpecs.mde?
It might be more than you need, but it works well in my apps.
www.lebans.com

"Icarus" <tj******@gmail.comwrote in message
news:9a**********************************@f36g2000 hsa.googlegroups.com...
>I have a function in Access 2007 that runs the following code:

DoCmd.OutputTo acOutputReport, "rpt-TOC Summary", "Rich Text Format
(*.rtf)", "C:\TOC\Working\PRE-X08-0295.doc", False

When I run this code in an mdb file, it executes with no problems.

When I execute the same function when compiled in an mde file, I get
Error Number "438" (Object doesn't support this property or method).

Does anyone know why this would happen?

Thank you.

Aug 2 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.