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

Sending Multiple Emails: Bypass Pause in code

Status
Not open for further replies.

EhWot

Technical User
Feb 25, 2002
14
US
Hi all,

This is only a small thing but is driving me nuts as I can't seem to solve it.

I've written some code that cycles through a list of names. For each curent name, a query is created using the current name as criteria and an Email is sent to the address associted with the current name with the Query as an Excel attachment.

Currently, the user has to click send before the next Email is created, my question is this:

How to I get the code to populate the screen with ALL the Emails at the same time? I.e. 7 Names will populate the screen with 7 Emails?

I'm using
Code:
DoCmd.SendObject acSendQuery, "TempQueries", acFormatXLS, Email, , , , , True

Is there a 'Resume' type command I can prefix this with?

Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top