ADO returns wrong order of magnitude
问题 i'm writing a VBA macro for Excel 2003. I'm importing various data from a sql database to the Excel sheets. I tried two ways to do that: QueryTables.Add(...) with ADO I was in favour of ADO, because it seemed to be the 'better' or 'cleaner" solution. Everything worked well until i tried to get a numeric value with ADO out of the database. Instead of returning the value 1842,47078 it returned 0,01842 . (just to show what i mean) Strange thing is: when i try it with QueryTables.Add(...) i get