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

Email snapshot, how to auto subjectfiled

Status
Not open for further replies.

maes2

Technical User
Jan 22, 2002
7
SE
Hi !
I want to send a report of a document (snapshot) with e-mail. (Access2000)

In every report there is a new "serialnumber" that I want to end up in the subjectfield of the email.

The recever of the e-mail is always the same person, the problem is the subject.

Does anyone know how the code look like, they want to just press a button, (we use outlook2000/Exchange).

//ME
 
One way would be is to put a DLookup statement in the subject line for the query that feeds the report.

DoCmd.SendObject acSendReport, "ReportName", acSnapshot, "joe@mail.com", , , DLookup("SerialNumber", "MyQueryName") prodevmg@yahoo.com
ProDev, MS Access Applications B-)
May God bless you in the year 2002.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top