S
straymae
Guest
Hello
i need to import an excel-sheet into Access via an Access VBA module that contains for certain columns numeric fields. All fields in the Excel-sheet are in Text-format.
The problem is that numeric values that contain a comma as decimal separator are wrong imported via my code.
My regional settings decimal separator for numbers is comma ",".
Before import, my destination table is created with no data and with all columns having the TEXT-datatype.
When I try the TransferSpreadsheet method (TransferType:=acImport, ...) then I receive something like this :
4498494,77 --> 4.49849e+006
13922,48 --> 13922.5
566127,68 --> 566128
68,44 --> 68.44
Comma are altered to points, large numbers are rounded. The first record contains 4498494,77 as value. All values in that columns are numbers.
Can anyone could provide any assistance in this matter?
Thanks.
By the way, I do not wish to alter the Excel sheet's format.
Stijn, Belgium
i need to import an excel-sheet into Access via an Access VBA module that contains for certain columns numeric fields. All fields in the Excel-sheet are in Text-format.
The problem is that numeric values that contain a comma as decimal separator are wrong imported via my code.
My regional settings decimal separator for numbers is comma ",".
Before import, my destination table is created with no data and with all columns having the TEXT-datatype.
When I try the TransferSpreadsheet method (TransferType:=acImport, ...) then I receive something like this :
4498494,77 --> 4.49849e+006
13922,48 --> 13922.5
566127,68 --> 566128
68,44 --> 68.44
Comma are altered to points, large numbers are rounded. The first record contains 4498494,77 as value. All values in that columns are numbers.
Can anyone could provide any assistance in this matter?

By the way, I do not wish to alter the Excel sheet's format.
Stijn, Belgium