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

Send email (without report attached) from Access Form

Status
Not open for further replies.

maca9

Technical User
Apr 3, 2003
34
0
0
NZ
Hi

I am having trouble sending an email from access unless I am attaching a report.

Using the sendreport command I am able to have a button automatically attach the report and open the email and address it with a field from the form.

But when I want to simply send an email with out a report i have having problems.

I am trying to create a button which when pushed will open mail message and send it to the person in one of the fields.

The next tricky bit is the address. The field will contain John Smith.

But the address needs to read john.smith@anywhere.com

Any help would be awesome.

Thanks

Scott


Diamond Specialists
 
Scott
Do you have a control that contains the e-mail address?

If so, the following opens an e-mail message in Outlook Express, and then you can put in the subject, message text, and whatever...
Code:
strTemp = Me.YourEMAILControl
If strTemp = "" Then
Call MsgBox("There is no e-mail address for this person.", vbExclamation, "e-mail address check")
Exit Sub
End If
DoCmd.SendObject , , , strTemp

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top