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

Sending Emails from Access via Shell32.dll (DougP's code)

Status
Not open for further replies.

Basey

Programmer
Jan 9, 2002
4
DE
Hi!

Finally after a long search for an appropriate way of sending Emails from Access I've found the code provided by DougP on these pages here.

As my application should be able to create several emails in "one go" (different lists are sent to the users in another table) this code is working but one thing is really annoying if you have more than 5 users/Emails generated:
The Email-Window remains open! Just imagine what your screen looks like if you have 250 Emails generated...
How can the code be changed, so that the Email is sent without shhowing up on the screen similar to the DoCmd.Sendobject acSendObject ,&quot;&quot;,acFormatTXT,&quot;recipient&quot;, &quot;Subject&quot;, &quot;Text&quot;, False <- ?

Thanks for any help!
 
Hi.

I've never used this, but you might try:
Code:
DoCmd.RunCommand acCmdCloseWindow

Good luck. Gus Brunston :cool: An old PICKer, using Access2000
padregus@attbi.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top