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

export automatically to excel

Status
Not open for further replies.

GirlBlonde

Programmer
Oct 30, 2007
94
AU
Hi i would like to put on a button an automation for exporting a queries data into a specific excel spreadsheet. i only know the code for importing below

DoCmd.TransferDatabase acImport, "Microsoft Access", _
"h:\pcs.mdb", acTable, "Table1", "test", False

many thanks



Energy & persistance conquer all things!
 
Have a look at the DoCmd.TransferSpreadsheet method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top