Extracting an E-mail address from Access (1 Viewer)

LHolden

Registered User.
Local time
Today, 03:34
Joined
Jul 18, 2012
Messages
73
Is it possible to extract just an e-mail address from access, and insert it into the 'To' field in outlook? For example if 'Email Address' were a control on a form, or a report, could code be written to extract just that?

Thanks for any help!
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 00:34
Joined
Aug 30, 2003
Messages
36,126
Sure; one way in VBA code would use DoCmd.SendObject and Me.EmailAddress in the "To" argument. More info in VBA help.
 

LHolden

Registered User.
Local time
Today, 03:34
Joined
Jul 18, 2012
Messages
73
Thanks, but I don't want to send an object, just want to extract the email address from it, but I'll go look/post in VBA.

Thanks again.
 

Geotch

Registered User.
Local time
Today, 02:34
Joined
Aug 16, 2012
Messages
154
Yes, use the macro send email, for the to field use =forms![nameofyourform].[nameofyourfield]
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 00:34
Joined
Aug 30, 2003
Messages
36,126
You don't have to send an object. The code can be used to simply start an email with the address.
 

Users who are viewing this thread

Top Bottom