1
Guys, in my database, the column is set to numeric (18,2)
then I have a field in a form that the person type the value and it goes to my table.
the insert
is like this:
entrada = Replace(Request.form("entrada"),",",".")
only if the person type the value with semicolon, for example "100.328,74"
he makes the following mistake:
"[Microsoft][ODBC SQL Server Driver][SQL Server]Not possible convert a char value into money. The char value syntax is incorrect."
if she only type the dot: "100.328"
the value turns 100,33
(display on the website with formatnumber
"
if the person enters only the comma:
"100,32"
value goes straight to database "100.32"
and appears "100,32"
on the website, according to the formatnumber
any idea?
I have no way to indoctrinate everyone who will insert the value not to use the point that separates the thousand/million
I would like to program to already go the right value.
thank you!
The value will always have pennies?
– Sam
Sam, it’s not always, but it can happen
– user78432