Hi all,
I am trying to use the code below to send an email to more than one person, the email addresses originate from combo and/or text boxes.
So this code works perfectly when sending one email from cbosupplieremail To:
According to Access help i can add another To using ; and the following , , is where i can place the CC.
If i replecate the code
I get an error where i would expect to get the same mail address replicated, I obviously want this pointing to a different source (cboprogrammeEmail.Text) this also causes an error.
I have also tried using
and it also returns an error 
I could also create a macro using the build wizard however i am unsure how to link this to the form, my macro returns my code
in the To box instead of the email placed at txtSupplierEmail text box,
I cannot simply write the email in as it is not fixed and changes depending on selections made in my form.
I have tried many variations and with knowhere else to turn If somebody knows how to overcome this I would greatly appreciate your help.
Thanks
Jason
I am trying to use the code below to send an email to more than one person, the email addresses originate from combo and/or text boxes.
So this code works perfectly when sending one email from cbosupplieremail To:
Code:
Private Sub Command32_Click()
Form_frmRaise_Revision1.SetFocus
Form_frmRaise_Revision1.cboSupplierEmail.SetFocus
On Error Resume Next
DoCmd.SendObject acSendForm, "frmRaise_Revision1", "html", Form_frmRaise_Revision1.cboSupplierEmail.Text, , , "Subject", "Email"
On Error GoTo 0
End Sub
According to Access help i can add another To using ; and the following , , is where i can place the CC.
If i replecate the code
Code:
Form_frmRaise_Revision1.cboSupplierEmail.Text
I get an error where i would expect to get the same mail address replicated, I obviously want this pointing to a different source (cboprogrammeEmail.Text) this also causes an error.
I have also tried using
Code:
me.cboSupplierEmail
Code:
cboprogrammeEmail.Text

I could also create a macro using the build wizard however i am unsure how to link this to the form, my macro returns my code
Code:
Me.txtSupplierEmail
I cannot simply write the email in as it is not fixed and changes depending on selections made in my form.
I have tried many variations and with knowhere else to turn If somebody knows how to overcome this I would greatly appreciate your help.
Thanks
Jason