Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendObject Method: e-mail to list with VBA

Status
Not open for further replies.

HenryAnthony

Technical User
Feb 14, 2001
358
US
Hello All,

I wish to use SendObject Method to e-mail to a list. The list is derived from a query of a table of e-mail recipients. Any help on how I should write this code would be appreciated.

Henry
 
see my FAQ
faq181-493
You would want to open a recordset of just th epoeple to e-mail too.
then in a For Next loop get each persons e-mail
example Rst!EMail

and stick that in like so (crude example)

for a = 1 to rst.recordcount

DoCmd.SendObject acSendNoObject, "", acFormatTXT, Rst!EMail, , , "---------HOT ORDER-------", Redinfo, False

next

OK DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Doug, does "Rst!EMail" represent a variable in you example? If so, do you not need to separate e-amil addresses by a semicolon? How would that be accomplished?

Thanks for your help,

Henry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top