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

Export to Excel Code problem

Status
Not open for further replies.

GirlBlonde

Programmer
Oct 30, 2007
94
AU
hi i am trying unsuccessfully to export a query automatically via a button to excel using the below code but i keep getting errors. can anyone see where i am going wrong? very frustrated.

thanks


query is called exportexcel spreadsheet is SendCarRequestExcel and the sheet name is also SendCarRequestExcel


DoCmd.TransferSpreadsheet acExport, "MicrosoftExcel(*.xlsx)", "[[Exportexcel]]", "[[SendCarRequestExcel]]", False, "[[SendCarRequestExcel]]"


Energy & persistance conquer all things!
 
Why all those [[ and ]] ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
hi i got it from the internet. i can not find it in the file above via search???am i looking in the wrong space?

Energy & persistance conquer all things!
 
Put the cursor inside the TransferSpreadsheet word in your code and press the F1 key.

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

Part and Inventory Search

Sponsor

Back
Top