The line below would output your report to the directory the database resides
in:
DoCmd.OutputTo acOutputReport, "myReport", "RichTextFormat(*.rtf)",
CurrentProject.Path & "\MyReport.rtf"
> Hi,
>
[quoted text clipped - 74 lines]
> Set objOutlook = Nothing
> End Sub
Sandy - 29 Sep 2006 21:59 GMT
Thanks Ralph,
Unfortunately I tried this line of code prior to my post and received an
error that I can not save to this directory, even though I have
administrative access to the folder. I believe there are some security issues
that exist with the recent SP2 upgrade that are preventing this as an option.
Do you know of a way to just pass in a variable as the report name and
assign it to an object variable, which I can then attach to the email as the
message body?
Thanks for your help,
Sandy
> The line below would output your report to the directory the database resides
> in:
[quoted text clipped - 80 lines]
> > Set objOutlook = Nothing
> > End Sub
Sandy - 29 Sep 2006 22:05 GMT
Hi Ralph,
Guess what - I tried it and it worked! Your code was different than mine for
the Output format - I wonder if that was the problem? In any case you are a
life saver!
Thanks a million!
Sandy
> The line below would output your report to the directory the database resides
> in:
[quoted text clipped - 80 lines]
> > Set objOutlook = Nothing
> > End Sub