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

Email Reports from Access 97

Status
Not open for further replies.

Adams

Technical User
Mar 10, 2001
44
US
I have been given a project to email Access reports on a weekly bases to managers at their locations. I am currently running the report selecting each office location and emailing the report from Access. This is very time consuming running each location (50) and then entering the email address and the body message. I am sending the reports .rtf. I have the email addresses in a table for each location. Would each file need to be output with a file name example(C:\mystuff\office110) and then attached to an email? Could you recommend an easier process? or explain to me what I need to do to automate this project.

Thanks
 
Here is something I've done along similar lines.
Don't forget you may want to work round the Outlook Security if using OL2000


Set db = CurrentDb
Set users = db.OpenRecordset("tblWhoIsSentReports")

users.MoveFirst

DoCmd.SetWarnings False
DoCmd.Echo False

Do While Not users.EOF

report = users![ReportName]
recipmail = users!

DoCmd.Sendobject acSendReport,report,acFormatRTF,recipmail,,,"subject",
"message" , false

users.MoveNext
Loop

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top