Hi, i have 2 fairly simple Emailing issues.
I have a button, when I click the button I want it to email something to the email address on that record (the client), I want it to open outlook but not actually send it, as small adjustments may be made.
This is my code
problem 1, In the 'To' line on outlook I get
name@client.co.uk#mailto:name@client.co.uk#
and it will not send.
How do i get it to just say name@client.co.uk ? without the 2nd name in hash tags.
Problem 2, If i kill of the outlook window without sending, i get an error :-
Runtime Error 2501
The sendObject action was canceled
Can I stop this error message?
thanks in advance
I have a button, when I click the button I want it to email something to the email address on that record (the client), I want it to open outlook but not actually send it, as small adjustments may be made.
This is my code
Code:
Private Sub RFIEmail1_Click()
Dim strToWhom As String
Dim strMsgBody As String
Dim strSubject As String
strSubject = "Your appointment reminder"
strToWhom = Me.email 'clientsemailonthe form
strMsgBody = "this will be the message, usually a fixed message"
DoCmd.SendObject , , , strToWhom, , , strSubject, strMsgBody, True
End Sub
problem 1, In the 'To' line on outlook I get
name@client.co.uk#mailto:name@client.co.uk#
and it will not send.
How do i get it to just say name@client.co.uk ? without the 2nd name in hash tags.
Problem 2, If i kill of the outlook window without sending, i get an error :-
Runtime Error 2501
The sendObject action was canceled
Can I stop this error message?
thanks in advance