People, in my database, the column is set to numeric (18,2)
Then I have a field in a form that the person types the value and it goes to my table.
insert
looks like this:
entrada = Replace(Request.form("entrada"),",",".")
Only if the person enters the value with a semicolon, for example "100.328,74"
it gives the following error:
"[Microsoft] [ODBC SQL Server Driver] [SQL Server] Can not convert a char value to money. The syntax of the char value is incorrect. "
If it types only the point: "100.328"
value becomes 100,33
(display on site with formatnumber
"
if the person types only the comma:
"100,32"
value goes right to database "100.32"
and "100,32"
appears on site, according to formatnumber
Any ideas?
I have no way to indoctrinate everyone who is entering the value to not use the point that separates the thousand / million
I would like to program to go the right amount.
Thank you!