• Email Field… (Access 2003 (sp3))

    Author
    Topic
    #454848

    How do I make the Email address appear in the TO: box of my Outlook programme, when I click the email on my formin Access it starts up Outlook fine, but always inserts the word [Emailaddress] rather than the persons actual address from the field…

    any help out there would be very much appreciated…ta Steve in Southampton UK

    Viewing 0 reply threads
    Author
    Replies
    • #1130152

      Welcome to Woody’s Lounge!

      You write “when I click the email on my form”. Could you explain what you click? A command button, or a text box, or…? And what type of field contains the e-mail address – a text field, or a hyperlink field?

      • #1130154

        My goodness what a swift response!!
        Okay I have a label on my form called label247, when I click this label it starts up an [eventprocedure] as follows:
        Private Sub Label247_Click()
        Application.FollowHyperlink “mailto: [Emailaddress]”
        End Sub

        The email address is in another field named : Emailaddress….
        After this my brain begins to hurt… thanks Steve

        • #1130156

          Thanks for the clarification. Try this:

          Private Sub Label247_Click()
          Application.FollowHyperlink “mailto:” & [Emailaddress]
          End Sub

          The [Emailaddress] field is placed outside the quotes, so the code now uses the value of the field instead of the literal text.

          • #1130158

            Worked at treat!!
            Thank you very much indeed HanV for you help…..

            Hare Krysna…Steve – Southampton UK

    Viewing 0 reply threads
    Reply To: Email Field… (Access 2003 (sp3))

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: