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!

Help emailing Spreadsheet

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
US
Need help emailing a spreadsheet.. At the current time I'm just exporting it to a folder using:

DoCmd.TransferSpreadsheet acExport, 5, "Export", "G:\Production\1502Report1.xls", True

Instead of having to go to the folder and attaching to an email, can I have it mailed on a click event or even better on some sort of timer?

Thanks........
 
hi ecugrad

assuming that "export" is the name of the table you've been exporting, try this here code.

DoCmd.SendObject acSendTable, "Export", acFormatXLS, "type email address here", , , "Type Subject here", "Type Message here", False

Hope it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top