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

Exporting a table to Excel via a Command Button

Status
Not open for further replies.

akki007

Programmer
May 22, 2003
55
0
0
GB
I have a form that simply updates one table. I would like a command button that when clicked, exports all collumns from that table to Excel and opens up Excel.

Basically, the same procedure as File > Export...

Thanks
 
Have a look at the DoCmd.TransferSpreadsheet method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks, I figured it out actually. I created a Macro and ran that via the button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top