Solved

Getting MS Access Front End to launch hyperlinks

Posted on 2013-01-08
2
213 Views
Last Modified: 2013-04-25
Hi,

We have converted an MS Access database to use a SQL Server backend database and need to get the retained in MS Access forms to work as they did before the split.  We need to be able to:

1. Launch a browser session when the website address is clicked in the website field
2. Launch a new email when the email address is clicked in the email field

I believe this needs to be done using VB code but I need to know what the code is.

Thanks
0
Comment
Question by:qjump
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 385 total points
ID: 38757302
I'd remove the "hyperlink" syntax, and instead store JUST the full URL to the link (like http://www.microsoft.com), and then just set the Hyperlink property of your form's Control - see if that works.

If not, then you can add code like this in the Click or DoubleClick event:

Application.FollowHyperlink Me.YourFieldName
0
 
LVL 12

Expert Comment

by:duttcom
ID: 38757322
You can send an email via Outlook with the code below. This code for a button, but you could easily run it when the field is clicked instead. You will obviously need to change the field name from Me.Contact_Email to whatever your email field is called.
Private Sub btn_Email_Click()
On Error GoTo Err_btn_Email_Click

    Dim stDocName As String

    stDocName = "Empty_Report"
   ' DoCmd.SendObject acReport, stDocName
    DoCmd.SendObject acSendNoObject, stDocName, acFormatXLS, Me.Contact_Email, , , "Subject", , True
Exit_btn_Email_Click:
    Exit Sub

Err_btn_Email_Click:
    MsgBox Err.Description
    Resume Exit_btn_Email_Click

End Sub

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question