insert email address from current record field

lotarugg

Registered User.
Local time
Today, 07:54
Joined
Mar 15, 2011
Messages
34
Hi,

I have this code

DoCmd.SendObject _
, _
, _
, _
emailaddress@domain.org, _
, _
, _
"This is the subject", _
"This is the message to you", _


This is triggered on a button press on a form. The email needs to go to a person on the particular record currently displayed on the form. Is it possible to switch focus to the field and use the email address in that field. I'm guessing it is, but my coding is really poor

Cheers
 
Instead of the address try

Me.EmailAddressTextboxName
 
It worked - you star!

Thanks very much
 

Users who are viewing this thread

Back
Top Bottom