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!

Send report vie e-mail

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi

I am looking for the code to send a report through e-mail or export to the Word file.

Thanks
 
How about using the sendobject syntax:

DoCmd.SendObject [objecttype][, objectname][, outputformat][, to][, cc][, bcc][, subject][, messagetext][, editmessage][, templatefile]

 
You should look at SnapShot Viewer (available free as MS download if you don't have it). It allows you to save a report with all formatting intact (lines, graphics, and other embedded objects, etc.)that get stripped out if you save as text file. It is similar to saving as a pdf file in Acrobat. Keep in mind the recipient must have Snapshot viewer also. See
 
Just another follow up of an interested on-looker.

This example assumes that there is an e-mail client on the computer running the vba.

Can anyone direct me to how to do the e-mail if the computer has no e-mail client or even if the client is not configured.

Thanks

UrbaneRove
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top