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

Crosstab to Excel 1

Status
Not open for further replies.

traycee

IS-IT--Management
Joined
Sep 6, 2001
Messages
245
Location
US
Hi All! :)
I have a crosstab query that I can click on and export to excel and it works just great. Thing is...I go behind the form interface to do this. I'd like to put a link on the report menu form so that other users can click on this link, the same as when they run a report, and it will automatically export the data into excel. Sounds simple...so why can't I do it.
Tracee
 
Have you looked at (?):

[tt]DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Crosstab Query Name", "C:\Data\Crosstab.xls"

Or

DoCmd.OutputTo acOutputQuery, "Crosstab Query Name", acFormatXLS, "C:\Data\Crosstab.xls", True[/tt]
 
Thanks Remou!
The latter choice worked perfectly for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top