Email from form

P

Phil

I have nearly got it aad then got another error

i have set up a button to send a confirmation email to participants on a
course.

this works fine. i then thought i would take this one step further and
send the same email to their managers. this is where my problem starts. i
will not have their managers address sometimes but then the email will not
send because the Code is requesting an email adress for cc and bccc the code
is;-

DoCmd.SendObject _
acSendQuery, "Email_query", acFormatTXT, _
[EmailName], _
[PDN_Email], _
[Managers_Email], _

now obviously their is something that tells it to ignore if blank but i am
new to VBA and do not know

thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Send Object Query 2
Email SubForm 2
Emailing via vb 4
Email from Access 1
Sending e-mails from specific email address 2
Restricting emails 7
New to VBA 1
Send more then one attachment in Email 1

Top