Here's an example scenario using VB.Net and MS Access (ADO.NET):
The current thread's language setting is fr-FR with thousand separator of a space and decimal separator of a comma.
I have a string amount of 33 233,25
I convert it to a decimal which I know doesn't have any built-in regionalization formatting, so it shows in the debugger as 33233.25 since I'm in the US.
All is well until I try to save this number into an Access database table with a data type of Number (decimal). When I try to save I get an error message telling me that there's a data type mismatch in criteria expression.
I know the decimal is the problem because when I replace it with a literal of 10,50, the record update is fine. I'm confused as I thought the decimal had no inherent language properties.
What am I missing?
Thanks