How do I create a "Send" button that uses a record's "e-mail" fiel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone know how I can create a button that will open up a new Outlook message
with the e-mail address from a record field?
 
The easiest way is to use SendObject:

DoCmd.SendObject To:=Me.EmailAddress

You can also add other arguments, such as Subject and MessageText...

DoCmd.SendObject To:=Me.EmailAddress, Subject:="Your account", _
MessageText:="blah blah"

If you want to send the message without editing, add EditMessage:=False
 
Worked perfectly. Thank you.

Graham Mandeno said:
The easiest way is to use SendObject:

DoCmd.SendObject To:=Me.EmailAddress

You can also add other arguments, such as Subject and MessageText...

DoCmd.SendObject To:=Me.EmailAddress, Subject:="Your account", _
MessageText:="blah blah"

If you want to send the message without editing, add EditMessage:=False
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand


NDMac said:
Anyone know how I can create a button that will open up a new Outlook
message
with the e-mail address from a record field?
 
Back
Top