tranchemontaigne
Registered User.
- Local time
- Today, 03:09
- Joined
- Aug 12, 2008
- Messages
- 203
I have a problem where I dynamically write a piece of SQL and then pass that SQL straight through to Oracle using VBA code to open a new Oracle connection. All works fine here.
Oracle then returns a result set that gets written to an ADODB recordset object. All works fine here.
The results of the ADODB recordset object are then written to an array in memory and the array results are posted into cells in MS Excel. When dates originate some time ago (e.g. 1912, 1920) the process of writing those date values into a MS Excel cell causes the century to change (e.g. 1912 becomes 2012, 1920 becomes 2020).
How can I code around this problem? The array storing recordset results is of type variant. The variant value is written to MS Excel. Is there a smarter way to address this problem?
Oracle then returns a result set that gets written to an ADODB recordset object. All works fine here.
The results of the ADODB recordset object are then written to an array in memory and the array results are posted into cells in MS Excel. When dates originate some time ago (e.g. 1912, 1920) the process of writing those date values into a MS Excel cell causes the century to change (e.g. 1912 becomes 2012, 1920 becomes 2020).
How can I code around this problem? The array storing recordset results is of type variant. The variant value is written to MS Excel. Is there a smarter way to address this problem?