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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Report as email/attachment by Outlook Express

Status
Not open for further replies.

zuza

Programmer
Joined
Nov 9, 2003
Messages
54
Location
YU
Hello there,

Below statement is to send report as an attachment via Email/Outlook to Staff member. Please correct me whereever.

DoCmd.SendObject "Reportname", acReport, "Table", "[Claimno]= '" & Text80 & "'"


Thank you.

Zuz.
 

DoCmd.SendObject acReport, "Reportname", "RichTextFormat(*.rtf)", "", "", "", """[Claimno]= '"" & Text80 &", "", False, ""

RichTextFormat(*.rtf) is where your output option goes
Subject Line: [Claimno]='"" & Text80 &" will show up as just that.

The easiest way to do this is create a Macro using the SendObject Command and then convert it to VB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top