Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem copying ADO recordset to Excel 2003

I have a number of older spreadsheet applications which use the
recordset GetRows() method to fetch recordset data into a variant array
and then use
Range("Data").Value = varData()
to get the data into Excel.

MS KnowledgeBase article: 246335 - "How To Transfer Data from an ADO
Recordset to Excel with Automation" gives an example of doing this. It
also recommends the newer CopyFromRecordset technique for later
versions of Excel.

I have many older apps that use the Array technique, which I don't want
to re-code at this time.

The problem is that in Excel 2003, any date fields are interpreted as
American dates (mm/dd/yy) rather than Australian dates (dd/mm/yy) when
the data is put into the worksheet by Range("Data").Value = varData() .
Excel 2000 did not have the same problem.

Has anyone else had this problem, and know of a work-around?

The newer CopyFromRecordset technique works, but it will mean a lot of
re-coding.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem copying a formula in Excel 2003 [email protected] Excel Discussion (Misc queries) 2 January 7th 07 11:30 AM
problem copying visible cells from 2000 to 2003 rtillt Excel Discussion (Misc queries) 2 August 18th 06 05:34 PM
problem in seek value in recordset with index. miao jie Excel Programming 2 September 14th 04 03:36 PM
ADODB Recordset problem Stefen Percoco Excel Programming 2 July 26th 04 06:31 PM
Conceptual Problem with DAO/ADO Recordset Eddy[_3_] Excel Programming 0 September 8th 03 07:43 AM


All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"