PC Review


Reply
Thread Tools Rate Thread

Change text to email hyperlink

 
 
=?Utf-8?B?Q29yZXN5c0FkbWlu?=
Guest
Posts: n/a
 
      26th Jun 2006
We currently store email addresses in a text field which I wish to change to
a hyperlink field. If I change the field type to hyperlink and use the
following code on the form field this works perfectly for new addresses that
are input.

Private Sub Tut_Email2_AfterUpdate()
Me![Tut_Email2] = Me![Tut_Email2].Text & "#" & "MailTo:" &
Me![Tut_Email2].Text
End Sub

However, all of the existing data registeres as http://. Is their a way of
updating all of the currently stored email addresses to change them to
'mailto' rather than 'http://'. I have tried various update queries without
success.
 
Reply With Quote
 
 
 
 
Tony Toews
Guest
Posts: n/a
 
      29th Jun 2006
CoresysAdmin <(E-Mail Removed)> wrote:

>We currently store email addresses in a text field which I wish to change to
>a hyperlink field.


Why do you want to change the field to a hyperlink field?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
=?Utf-8?B?Q29yZXN5c0FkbWlu?=
Guest
Posts: n/a
 
      30th Jun 2006
In order that when we click on the email address it generates a new email
with the address pre-filled. Currently we are having to cut and paste the
email address in to the new email. If there is a better way of doing this I
am open to suggestions.

Cheers

Michele

"Tony Toews" wrote:

> CoresysAdmin <(E-Mail Removed)> wrote:
>
> >We currently store email addresses in a text field which I wish to change to
> >a hyperlink field.

>
> Why do you want to change the field to a hyperlink field?
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
>

 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      6th Jul 2006
CoresysAdmin <(E-Mail Removed)> wrote:

>In order that when we click on the email address it generates a new email
>with the address pre-filled. Currently we are having to cut and paste the
>email address in to the new email. If there is a better way of doing this I
>am open to suggestions.


You could use the SendObject command in a bit of code behind the form.
Something like
DoCmd.SendObject acSendNoObject, , , me!<name of field on form
containing the email address>

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Reply With Quote
 
=?Utf-8?B?Q29yZXN5c0FkbWlu?=
Guest
Posts: n/a
 
      6th Jul 2006
Thanks for this - really helpful.

"Tony Toews" wrote:

> CoresysAdmin <(E-Mail Removed)> wrote:
>
> >In order that when we click on the email address it generates a new email
> >with the address pre-filled. Currently we are having to cut and paste the
> >email address in to the new email. If there is a better way of doing this I
> >am open to suggestions.

>
> You could use the SendObject command in a bit of code behind the form.
> Something like
> DoCmd.SendObject acSendNoObject, , , me!<name of field on form
> containing the email address>
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change email Hyperlink from picture to text view? any ideas? Jeannie Microsoft Excel Worksheet Functions 0 4th Dec 2008 12:48 AM
Hyperlink and text change =?Utf-8?B?dGhlcmVzYQ==?= Microsoft Frontpage 3 2nd Nov 2007 12:26 AM
Query to change Hyperlink text and email =?Utf-8?B?Um9Cbw==?= Microsoft Access 1 20th Oct 2006 09:04 PM
change hyperlink text =?Utf-8?B?a2lt?= Microsoft Outlook Discussion 1 10th Apr 2006 04:15 AM
Change a text type to hyperlink for email not for explorer Trellos Microsoft Access Database Table Design 0 3rd Aug 2003 05:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 AM.