Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to email a report in body of email & not as attachment?

Status
Not open for further replies.

snipesnab

IS-IT--Management
Oct 24, 2002
171
GB
How do I write the sendobject function to send a report (the contents of a report) in the body of an email and NOT as an attachment?
 
You will need to assign the data from the report to a variable and then set the variable as the [messagetext] of the SendObject command. I have done this before and found that is rather dificult to do if your report has a lot of formating.
DoCmd.SendObject [objecttype][, objectname][, outputformat][, to][, cc][, bcc][, subject][, messagetext][, editmessage][, templatefile]

Hope this helps point you in the right direction.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top