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