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!

Created excel files and need to AUTO SEND them using OUTLOOK

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello
I have two daily reports that I create using Access, it dumps them out to an excel format.
Now, I need to have OUTLOOK autosend these files after they are created.
I have tried using some other codes and none seem to work correctly.
My default mail program is Outlook express, so I never open OUTLOOK at all, to my best understanding, there has to be code that can send the email without having to open OUTLOOK.

Any ideas>
thanks - Aaron
 
Why don't you use
DoCmd.SendObject acReport,"ReportName", acFormatXLS,"To@email.com","CC@email.com","BCC@email.com","Subject here","Body message here", False

HTH
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top