I have a VBA/ADODB code that connects Excel to Oracle DB and runs an SQL Query. The problem is that the recordset in Excel shows Oracle DATE fields as adDBTimeStamp (135) even though in Oracle they are stored as simple dates. Basically i want to only import the DD.MM.YYYY parts to Excel. Is it possible to change ADODB field types in recordset before importing it to Excel? I know i could change the format with VBA after importing but i dont want to do that.
The code looks like this:
query = "SELECT NAME,DATE1,DATE2,DATE3 from MY_TABLE"
rs.Open query, Con
Sheets("data_source").Range("A2").CopyFromRecordset rs
Con.Close