G
Guest
I have coded the EmailAddress control as seen in some help messages regarding
the above, i.e. :
Private Sub EmailAddress_DblClick(Cancel As Integer)
On Error GoTo ErrorPoint
Dim strEmail As String
' Stop the Web Toolbar from appearing
DoCmd.ShowToolbar "Web", acToolbarNo
If Not IsNull(Me.EmailAddress) Then
strEmail = Me.EmailAddress
If Left(strEmail, 7) <> "mailto:" Then
strEmail = "mailto: " & strEmail
End If
Application.FollowHyperlink strEmail
End If
ExitPoint:
Exit Sub
ErrorPoint:
MsgBox "The following error has occurred:" _
& vbNewLine & "Error Number: " & Err.Number _
& vbNewLine & "Error Description: " _
& Err.Description, vbExclamation, _
"Unexpected Error"
Resume ExitPoint
End Sub
OR simplest : Application.FollowHyperlink "Mailto:" &EmailAddress
But how to open Lotus Notes (our Email program) instead of Outlook.
Thank in advance for your helps.
the above, i.e. :
Private Sub EmailAddress_DblClick(Cancel As Integer)
On Error GoTo ErrorPoint
Dim strEmail As String
' Stop the Web Toolbar from appearing
DoCmd.ShowToolbar "Web", acToolbarNo
If Not IsNull(Me.EmailAddress) Then
strEmail = Me.EmailAddress
If Left(strEmail, 7) <> "mailto:" Then
strEmail = "mailto: " & strEmail
End If
Application.FollowHyperlink strEmail
End If
ExitPoint:
Exit Sub
ErrorPoint:
MsgBox "The following error has occurred:" _
& vbNewLine & "Error Number: " & Err.Number _
& vbNewLine & "Error Description: " _
& Err.Description, vbExclamation, _
"Unexpected Error"
Resume ExitPoint
End Sub
OR simplest : Application.FollowHyperlink "Mailto:" &EmailAddress
But how to open Lotus Notes (our Email program) instead of Outlook.
Thank in advance for your helps.