Solved

OutputTo specify most recent Excel file format

Posted on 2007-11-20
1
463 Views
Last Modified: 2013-11-27
I have the following line of code in my sub routine:
DoCmd.OutputTo acTable, "Tbl_qry_EOM_Results", acFormatXLS, "", True, "", 0

It outputs to Microsoft Excel 5.0/95 Workbok format and I would like it output to the most recent Excel.
0
Comment
Question by:TylerDerden
1 Comment
 
LVL 19

Accepted Solution

by:
frankytee earned 125 total points
ID: 20324634
use transferspreadsheet method
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Tbl_qry_EOM_Results", "c:\whateverfile.xls", True
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now