Hyperlink Field Problems

  • Thread starter Thread starter nettiem
  • Start date Start date
N

nettiem

We recently changed the email address fields in our Access 2007 databases
from text to hyperlink. We like the option of clicking directly on the
fields to send individual emails. However, it is causing problems with mail
merge in Word - especially merge to email. Also, the hyperlink fields are a
hassle to edit.

We are trying to decide if it's better to leave the fields as hyperlinks or
change them back to text. It would be nice to have both options available.
Is there a way to create a separate field where the default value is equal to
another field in the same table? For example, "EmailText" could be a text
field where the email address is entered, edited, deleted, etc. "EmailLink"
would be a hyperlink field in the same table that by default is equal to
whatever information is in EmailText field. EmailText would be used for
merges and for editing. EmailLink would be used for displaying in forms,
reports, etc.

Thanks.
 
No need to store the email address as a hyperlink. If your records are
displayed on a form (as they should be) you can put this code behind a
command button to send email to the address shown on the form:

DoCmd.SendObject acSendNoObject, , txtEmailAddr

where txtEmailAddr is the name of a text box on the form.

HTH, UpRider
 
Thanks for the response. I'm not VBA literate, but I was able to figure out
how to create the button and it's working.
 
Back
Top