Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Jacksonville,NC, USA
    Posts
    705
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Email Question (Access 2003)

    Is there a way to make an email field in a table (we have hyperlink datatype on the field), without writing mail to: whoever@whereever.com first? Or without using the hyperlink dialog box to create an email link? Is there a way in the VBA window to make a field either in the table or in the forms field for email automatically create an email link in a field when someone types in the email address in the field?
    NMP <img src=/S/cool.gif border=0 alt=cool width=15 height=15>

    If you can't convince them, confuse them. - Harry Truman <img src=/S/scratch.gif border=0 alt=scratch width=25 height=29>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Email Question (Access 2003)

    You could use a standard text field (not a hyperlink field), and use code in the On Double Click event of the text box bound to the field on a form. Let's say the text box is named EMail:
    <code>
    Private Sub EMail_DblClick(Cancel As Integer)
    If Not IsNull(Me.EMail) Then
    Application.FollowHyperlink "mailto:" & Me.EMail
    End If
    End Sub
    </code>
    (You can - and should - add error handling)

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Jacksonville,NC, USA
    Posts
    705
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email Question (Access 2003)

    Thanks Hans, this is what was needed. Student request.
    NMP <img src=/S/cool.gif border=0 alt=cool width=15 height=15>

    If you can't convince them, confuse them. - Harry Truman <img src=/S/scratch.gif border=0 alt=scratch width=25 height=29>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •