Results 1 to 5 of 5
  1. #1
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41

    Form Field open Default mail client

    Access 2003

    I have a field on my database that is for email address.

    When I display that field on a form I would like it to be a Mailto: link and open up the users default mail client (assuming they use a local client and not web based email).

    The field is self in the table is set to "hyperlink"

    Is this form by form coding (In other words can I have it clickable on some forms and not on others?). I guess I could just lock the field on the forms I do not want it clickable.

    Any help with this would be appreciated.

    tia



    Dave
    Last edited by ducecoop; 11-18-2010 at 11:37 AM.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    check out the 'cursortype' property on forms. I think hyperlink fields default to 'hyperlink hand'. you can change it to an arrow i believe.

    have you tried the common workarounds, such as making the field text and using coloring and underlining to fool the users? have you tried a followerhyperlink method or something with the phrase "mailto:" preceeding the email address as the address pointer?

  3. #3
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41
    Sorry Adam, Did not understand a thing you said - so I am guessing I was not clear in what I wanted.

    I need a "Field" on a form to be clickable as a MailTo link

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    well your profile says you're using 2003, but hyperlinks were only intro'd in the 07 version, if I remember right. so I'm assuming you're on 07?

    I just tried clicking an email in a form that already was in a hyperlink field and my email client opened up by default. isn't that what you want?

  5. #5
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41
    I am using 2003
    Hyperlink is a Field "type" in the table.

    However I have gone a different direction that I think will be fine.
    Email fields have now been changed back to Text type

    I have added a button on the only form that I want users to email from.

    Coded as such:
    Code:
    Private Sub cmdEmailUSU_Click()
         Dim ToEmail As String
         Dim CCEmail As String
         Dim Subject As String
         Dim Message As String
         Dim Reply As String
         
    
       'Define Variables
       ToEmail = Me.USUEmail
    '   CCEmail = Me.PersonalEmail
       Subject = "Regarding your XXXXXXXXX Email Account"
       Message = "Write your message here"
       
         'CHECK TO SEE IF Email Address exist entered first
        If IsNull(Me.PersonalEmail) Then
        Reply = MsgBox("A Personal email account for the user is not in the database" & vbLf & vbLf & _
        "Do you want to send to ONLY the University account?", vbQuestion + vbYesNo)
            If Reply = vbYes Then
            DoCmd.SendObject , , , ToEmail, , , Subject, Message, True
             End If
        Exit Sub
        Else
        CCEmail = Me.PersonalEmail
        DoCmd.SendObject , , , ToEmail, CCEmail, , Subject, Message, True
    
       End If
       
    End Sub
    unfortunately on the machine I am working at this moment I do not have a local email client (only web based) so I can't test to see if it works.
    All the users of this will (i think) have a local client. maybe I should turn warning off just in case??

    Thanks for your assistance

    I am going to call this closed.

    Dave

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Open Outlook & populate e-mail
    By NISMOJim in forum Forms
    Replies: 7
    Last Post: 10-09-2010, 01:01 PM
  2. Open form on update of field in another form.
    By thekruser in forum Forms
    Replies: 5
    Last Post: 09-13-2010, 02:12 PM
  3. Set the default field for form veiw
    By amer in forum Database Design
    Replies: 2
    Last Post: 06-16-2010, 11:32 AM
  4. Replies: 4
    Last Post: 07-22-2009, 02:33 PM
  5. In a field on a Form, on click open another form
    By jackieagra in forum Programming
    Replies: 1
    Last Post: 03-20-2008, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums