I am sending an emial from a form in Access 2003 - the code is below. If I click on the command button and i get the email up with the names etc in it and then decide not to send it I get and error - THe sendobject was cancelled. I want to be able to cancel it without getting and eror.
this is the code
Private Sub SendMaill_Click()
Dim strTo As String
strTo = Me.appointment & " - " & Me.apptTime
DoCmd.SetWarnings False
DoCmd.SendObject , strTo, , Nz(EmailTo, ""), Nz(EmailCC, ""), , "QA GO Review", strTo
End Sub
Start Free Trial