Firstly, open your table in design view, and make sure your [email
address]
field is a Text type, not a Hyperlink type. Save. Close.
Then open your form in design view.
Right-click the text box, and choose Properties.
Set the DblClick property to:
[Event Procedure]
Click the Build button (...) beside that.
Access opens the code window.
Between the "Private Sub..." and "End Sub" lines, paste:
DoCmd.SendObject acSendNoObject, To:= Me.[email address]
Save the changes.
Open the form.
Double-click the [email address] control.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
jmuirman said:
Tried this and couldn't make it work - my field is called [email
address]
and
I pasted the do command in as you said but I'm not familiar language.
Thanks,
John
:
Is this field a Text field or a Hyperlink field?
If Hyperlink, Access will insert an http:// in front of the email
address,
and it won't work correctly. It is possible to use HyperlinkPart() to
parse
out the display name and address from the link and create it with a
mailto:
prefix instead, but this is unnecessarily messy.
A better solution is probably just to store the value in a Text field.
Then
use the SendObject action in the Click (or DblClick) event of the text
box
on your form. If your field is named Email, this would be line to
enter
in
your event procedure:
DoCmd.SendObject acSendNoObject, To:= Me.Email
message
I have a field that contains email addresses for clients and I want
it
to
be
a clickable link. How do I make it so I can click on it and it will
open
my
email client and starty a message to that person? I do know how to
do
it
by
editing the hyperlink individually in the table view, but not
setting
it
up
for all my data records so that when I enter a new email address, it
is
clickable.
I have been working on this for a while. Please help.