Link to home
Start Free TrialLog in
Avatar of JParente
JParente

asked on

SQL String

Hi,

I need to add lines to a table using the SQL instruction (e.g.) "INSERT INTO table (Customer, Cost) VALUES ('Company', 235,35)" Where 235,25 is the total amount for this company, for instance.
The problem is that in regional definitions i've set the comma (,) as the decimal simbol because i need that way to other apps and i can't change it and the VB generates an error because we have 2 fileds and 3 values. Of course the 235,35 is 235 units and 35 decimals.how can i handle this problem without changing Regional settings?
ASKER CERTIFIED SOLUTION
Avatar of satj2000
satj2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JParente
JParente

ASKER

It looks like very simple!!
Works fine, thanks!
You are welcome,
Good Luck,
Ameen.
--------------------------------
Need cheap and reliable web hosting? Check out unlimitedhostingplans.com, sign up now and win a X-box!
BTW if you use a decimal 235.35, then SQL Server/ADO Provider will convert for any locality anyway...