I was looking at a closed thread 702-396121 and am trying to send an email from my database using the following code as a template:
Private Sub Command10_Click()
Dim email, ref, origin, destination, notes As String
'***set references from your form
email = Me!email
ref = Me!ref
origin = Me!origin
destination = Me!destination
notes = Me!notes
'***set up the transaction that will format and send email
'***True at the end of the statement allows the email to be
'***edited before sent. change to False, and the email is
'***sent without edit
DoCmd.SendObject acSendForm, , acFormatTXT, email, , , ref & " " & origin & " " & destination, notes, True
End Sub
Trouble is, my form has fields containing spaces and a forward slash (/) ie
space booked
client/brand
Does anyone know how to cope with these special characters?
Thanks
Private Sub Command10_Click()
Dim email, ref, origin, destination, notes As String
'***set references from your form
email = Me!email
ref = Me!ref
origin = Me!origin
destination = Me!destination
notes = Me!notes
'***set up the transaction that will format and send email
'***True at the end of the statement allows the email to be
'***edited before sent. change to False, and the email is
'***sent without edit
DoCmd.SendObject acSendForm, , acFormatTXT, email, , , ref & " " & origin & " " & destination, notes, True
End Sub
Trouble is, my form has fields containing spaces and a forward slash (/) ie
space booked
client/brand
Does anyone know how to cope with these special characters?
Thanks