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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to send email in loop....SendObject or outlook objects 1

Status
Not open for further replies.

ToyFox

Programmer
Jan 24, 2009
161
US
I am building a simple loop that emails everyone in a recordset. If I use docmd.sendobject.... the email sits and waits for me to click send....

If I go with outlook objects... with .display .send etc...
the first iteration is fine, but I receive an error on the second pass. I dont have the code now its at home...but which style works better with a recordset and loop to send an email.
 
Set the 9th parameter(EditMessage) of the SendObject method to False

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top