I have the following code that works fine if I have only one email address but want to sometimes include more than one address. The addresses are stored in a table and retrieved through a form when a customer is selected. Text91 and Text87 (are both on the form).
Thanks in advance for your help.
Code:
.To = StrEmail
Do While Not rsCC.EOF
strCC = Nz(Text91) 'and Nz(Text87)
.CC = strCC
End If
rsCC.MoveNext
Loop
rsCC.Close
.BCC = "address2@hotmail.com"
.Subject = "topic of discusion"
.Body = "Text goes here..."
.Send
Thanks in advance for your help.