I'm attempting to update a legacy report to a 64Bit environment. The report in question runs just fine under 32bit office using the 32bit Microsoft ODBC driver for Oracle.
When attempting to run this under a 64bit office environment running the 64bit Oracle ODBC driver (cos Microsoft never made a 64bit version of theirs) I'm getting some very odd results:
code:
The above only brings back 1 row of data, it should bring back 6 rows.Please Login or Register to view this content.
Here's the interesting bit. The command Rst.MoveFirst is in there because......if I stop the code just before the copyfromrecordset command and manually issue an Rst.movefirst command from the immediate window.....and then resume at the copyfromrecordset command.....it brings back the correct 6 rows of data. However, when the rst.movefirst command in the code itself.....it doesn't work and only brings back 1 row of data. I can even run the code as far as the copyfromrecordset command, so the rst.movefirst has already run......F8 the copyfromrecordset and it'll bring back 1 row of data......manually issue the movefirst command and then rerun the copyfromrecordset.....and it'll bring back 6 rows.
Also....on both the 32bit and 64bit versions, polling the rst.recordcount brings back -1.
What the actual f.....?
oh P.S. If I specify a cursor type of 'adopenstatic' in the Rst.Open command......Excel crashes.
Bookmarks