I am using an ODBC connection to retrieve data from a .csv text file. One of the columns being retrieved contains Fx Rates and hence requires decimal places but the query only returns integer values. Even using Microsft Query shows the Fx Rates as being integers but examining the raw text file shows they definitely have decimal places.
I though it might have been due to the parameter MaxScanRows as I believe this scans the first few lines of the text file to establish data types. If the first few rows contain an Fx rate of 1 then the query assumes it must be an integer column type. I therefore changed MaxScanRows to sample the whole data set (I used ActiveCell.QueryTable.Connection = ".... to edit the connection) but it still doesn't work.
Any ideas how to force ODBC connection to recognise correct data type ?
I though it might have been due to the parameter MaxScanRows as I believe this scans the first few lines of the text file to establish data types. If the first few rows contain an Fx rate of 1 then the query assumes it must be an integer column type. I therefore changed MaxScanRows to sample the whole data set (I used ActiveCell.QueryTable.Connection = ".... to edit the connection) but it still doesn't work.
Any ideas how to force ODBC connection to recognise correct data type ?