|
Question : dot replace with "," in VB
|
|
I am working on the database. I have got a problem concerning numbers Which use different separators:
I get a number lets say 1.789,68 from central europe which means onethousend sevenhoundredeightynine comma sixty eight, where sixthy eight is the decimal value. In this case the [.] is the tousend separator and the comma is the decimal separator.
For further procedure I have to proceed this data in a table which is set up for english notation which means. I have to convert 1.789,68 somehow to 1,789.68
How can I archieve this???
|
|
Answer : dot replace with "," in VB
|
|
You could simply remove all of the . characters completely and replace the commas with . chars before appending the data into your table, eg: Replace(Replace([YourDataField],".",""),",",".")
Use that in an append query to append the data from say a temp table into your real table. Access will format the number according to your local format for you (in other words, it will put the correct thousand separator in).
|
|
|
|