I am using the following code to send an email from a form.
Is it possible to send this email based on an IF statement?
E.g
If tickbox1 = ticked run the above code
If tickbox2 = ticked run similar code
If tickbox3 = ticked run similar code
I am sure it is possible, an indication on how would be greatly appreciated
Thanks
Jason
Code:
Private Sub Label133_Click()
Form_frmClose.SetFocus
Form_frmClose.txtEmail.SetFocus
On Error Resume Next
DoCmd.SendObject acSendForm, "frmClose", "html", Forms!frmClose.txtEmail, Forms!frmClose.txtEmail & "; " & Forms!frmClose.txtOriginatorEmail, , " 1111" & "_" & Forms!frmClose.txtName & "_" & Forms!frmClose.DatabaseStatus & "_" & Forms!frmClose.DatabaseReferenceNumber, "Dear 1111," & vbCr & " " & vbCr & "111111"
End Sub
Is it possible to send this email based on an IF statement?
E.g
If tickbox1 = ticked run the above code
If tickbox2 = ticked run similar code
If tickbox3 = ticked run similar code
I am sure it is possible, an indication on how would be greatly appreciated
Thanks
Jason