J
Jennifer Crawford
I need to be able to automatically generate a report and
email it to the accounting department.
I can do this by using DoCmd.SendObject, and then sending
the report - which can be sent as an attachment in RTF
format (which seems to be the closest I can get to Word).
However, I've got some special formatting in the report,
where certain lines of the data are bolded (this is set in
the Detail_Format section of the report itself). I can see
this formatting if I preview the report as normal in
Access. However, I cannot see this formatting if I attach
it automatically to an email as an RTF document (or as a
text document, obviously, but it doesn't show if I do it
as an HTML document either).
Alternately, I can dump the entire thing into Excel with
all proper formatting, but once there I have no idea how
to save the file and then attach it to an email
automatically.
A solution to either alternative would be greatly
appreciated - but somehow I've got to be able to
automatically generate an email with the attached report,
with the appropriate formatting included.
email it to the accounting department.
I can do this by using DoCmd.SendObject, and then sending
the report - which can be sent as an attachment in RTF
format (which seems to be the closest I can get to Word).
However, I've got some special formatting in the report,
where certain lines of the data are bolded (this is set in
the Detail_Format section of the report itself). I can see
this formatting if I preview the report as normal in
Access. However, I cannot see this formatting if I attach
it automatically to an email as an RTF document (or as a
text document, obviously, but it doesn't show if I do it
as an HTML document either).
Alternately, I can dump the entire thing into Excel with
all proper formatting, but once there I have no idea how
to save the file and then attach it to an email
automatically.
A solution to either alternative would be greatly
appreciated - but somehow I've got to be able to
automatically generate an email with the attached report,
with the appropriate formatting included.