Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Change text to email hyperlink

Discussion in 'Information Technology' started by CoresysAdmin, Jul 28, 2006.

  1. CoresysAdmin

    CoresysAdmin
    Expand Collapse
    Guest

    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.
     
  2. Loading...

    Similar Threads Forum Date
    Christianity Has the text of the Bible changed over centuries? Interfaith Dialogues May 28, 2011
    Sikh News Sikh leaders want textbook changed Breaking News Jul 13, 2007
    Sikh News Sikh leaders want textbook changed -- again (The Sacramento Bee) Breaking News Jul 13, 2007
    Sikh News Bowing to Sikhs? Call, California Wants Textbook Change (New York Times) Breaking News Mar 12, 2007
    Interfaith A Sikh Change Comes To Houston’s Finest Interfaith Dialogues Mar 3, 2016

  3. Tony Toews

    Tony Toews
    Expand Collapse
    Guest

    CoresysAdmin <CoresysAdmin@discussions.microsoft.com> 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
     
  4. CoresysAdmin

    CoresysAdmin
    Expand Collapse
    Guest

    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 <CoresysAdmin@discussions.microsoft.com> 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
    >
     
  5. Tony Toews

    Tony Toews
    Expand Collapse
    Guest

    CoresysAdmin <CoresysAdmin@discussions.microsoft.com> 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
     
  6. CoresysAdmin

    CoresysAdmin
    Expand Collapse
    Guest

    Thanks for this - really helpful.

    "Tony Toews" wrote:

    > CoresysAdmin <CoresysAdmin@discussions.microsoft.com> 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
    >
     

Share This Page