PC Review


Reply
Thread Tools Rate Thread

DoCmd.OutputTo acOutputQuery acFormatXLS to 97-2003 not 2005

 
 
pdxSteve
Guest
Posts: n/a
 
      17th Mar 2009
I am using access2007, vista on a new computer..

I am trying to automate creating dozens of excel worksheets from the results
of a parameter query.

When i export the query to excel using the DoCmd.OutputTo acOutputQuery
acFormatXLS command, a worksheet is created in the Excel 5.0/95 workbook
format.... (is that 1995?)

Is there a way to associate the acFormatXLS (*.xls) constant to the Excel
97- Excel 2003 workbook format? (or is the another constant that is mapped to
this format).

thanks

sk
 
Reply With Quote
 
 
 
 
Jeff C
Guest
Posts: n/a
 
      18th Mar 2009

--
Jeff C
Live Well .. Be Happy In All You Do


"pdxSteve" wrote:

> I am using access2007, vista on a new computer..
>
> I am trying to automate creating dozens of excel worksheets from the results
> of a parameter query.
>
> When i export the query to excel using the DoCmd.OutputTo acOutputQuery
> acFormatXLS command, a worksheet is created in the Excel 5.0/95 workbook
> format.... (is that 1995?)
>
> Is there a way to associate the acFormatXLS (*.xls) constant to the Excel
> 97- Excel 2003 workbook format? (or is the another constant that is mapped to
> this format).


Try using transferspreadsheet:

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, ............etc
etc



> thanks
>
> sk

 
Reply With Quote
 
pdxSteve
Guest
Posts: n/a
 
      18th Mar 2009
Jeff,

thanks... i changed my code to read:

DoCmd.OutputTo acOutputQuery, stDocName,
acSpreadsheetTypeExcel9, strOutput

but it fired this error: Error 2282: the format in which you ar attempting
to output the current object is not available ... ???

I have office2007 installed..

"Jeff C" wrote:

>
> --
> Jeff C
> Live Well .. Be Happy In All You Do
>
>
> "pdxSteve" wrote:
>
> > I am using access2007, vista on a new computer..
> >
> > I am trying to automate creating dozens of excel worksheets from the results
> > of a parameter query.
> >
> > When i export the query to excel using the DoCmd.OutputTo acOutputQuery
> > acFormatXLS command, a worksheet is created in the Excel 5.0/95 workbook
> > format.... (is that 1995?)
> >
> > Is there a way to associate the acFormatXLS (*.xls) constant to the Excel
> > 97- Excel 2003 workbook format? (or is the another constant that is mapped to
> > this format).

>
> Try using transferspreadsheet:
>
> DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, ............etc
> etc
>
>
>
> > thanks
> >
> > sk

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
docmd.transferdatabase access 2003 to sql 2005 Chris Kemp Microsoft Access External Data 2 11th Aug 2007 09:59 PM
DoCmd.OutputTo acOutputQuery missing data janiotjoeawie via AccessMonster.com Microsoft Access External Data 0 16th Feb 2007 12:40 PM
DoCmd.OutputTo acOutputQuery/Copying query slow Crombie Microsoft Access External Data 3 28th Feb 2005 01:39 AM
DoCmd.OutputTo TAMMY Microsoft Access External Data 1 8th Jul 2004 09:03 PM
OutputTo method using acFormatXLS argument 5.0/95 format only? =?Utf-8?B?SmltIEQu?= Microsoft Access Reports 0 27th Apr 2004 09:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 PM.