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

Command Button to Email a Table as an Attachment

Status
Not open for further replies.

missmis44

MIS
Sep 11, 2002
22
US
I want to create a command button that when it is clicked it first runs my make query. Then brings up Outlook with that table as an attachment so that my user can enter the appropriate email addresses and send the email. Anyone have any ideas????
 
create a form with a text box and a command button
in the command button on click event
docmd.openquery "yourmaketablequery"
docmd.sendobject "tablename" ,acformatxls,me.textbox
enter a emailaddress in the text box and your table will sent as a excell file to email address of text box
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top