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!

output to excel

Status
Not open for further replies.

kerrigirrl

Programmer
Mar 29, 2001
39
US
My access help isn't working. If I want to output a query to excel, what's the abbreviation for excel? Also, is 1 correct for autostart?

DoCmd.OutputTo acOutputQuery, "SRCus", ???, "SalesRep by Customer", 1

Thanks in advance!
Kerri
 
Example:

DoCmd.OutputTo acOutputQuery, xtempquery.Name, acFormatXLS, , True

The prefix to be on the lookout for is the "acFormat" constants.

Try looking up the "OutputTo" option in the Help.

Here is the list of them...

acFormatActiveXServer
acFormatHTML
acFormatIIS
acFormatRTF
acFormatTXT
acFormatXLS


Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top