View Full Version : mailto as Hyperlink defalt


Ants
11-14-2000, 07:18 AM
I have a text box which is used to store e-mail addresses. When the e-mail address is entered in Access sets the Hyperlink to http://. Is there any way of setting the hyperlink to defalt to "mailto:"? I always have to go into edit hyperlink and change the setting myself.

Shall look forward to any comments and advices!

BSJWright
10-19-2005, 01:32 AM
I too would be interested to know if this is possible. Has anyone got any ideas?

ghudson
10-19-2005, 04:27 AM
I suggest that you store the email addresses in a table field that is formatted as TEXT. Then you can use the OnClick event of the text box or place a small email button besides the text box to wrap the MailTo function with the value of the text field. This example uses a text box named txtEmail...

Application.FollowHyperlink "mailto:" & Me.txtEmailIf you had searched the forum for the keyword MAILTO then you would have found a ton of threads to point you in the right direction.

kingdoby
03-28-2006, 09:52 AM
I wanted to publicly apoligize for being rude, I was getting frustrated. Your solution worked fine. Thank you again

ghudson
03-28-2006, 11:16 AM
I wanted to publicly apoligize for being rude, I was getting frustrated. Your solution worked fine. Thank you againThat is a first!!!

And you are welcome! :)