T
Tommy DN
I think I've a simple question.
I'm using the datatype "decimal". I need to build a sql - insert
statement to save something in the database. But the problem is that the
decimal - datatypes are written with a comma " , " and not " . ".
So when I make the string:
--
dim decimalvariable as decimal
sql = "insert into table(decimalthing) values(" & decimalvariable & ")"
--
while decimalvariable is 10,12
my sql string will be:
"insert into table(decimalthing) values(10,12)"
So the sql statement is wrong because it thinks you want to insert 2
variables 10 and 12.
What can I do to make it "insert into table(decimalthing) values(10.12)" ?
PS: I'm living in Europe, we usually write decimals with a comma.
I'm using the datatype "decimal". I need to build a sql - insert
statement to save something in the database. But the problem is that the
decimal - datatypes are written with a comma " , " and not " . ".
So when I make the string:
--
dim decimalvariable as decimal
sql = "insert into table(decimalthing) values(" & decimalvariable & ")"
--
while decimalvariable is 10,12
my sql string will be:
"insert into table(decimalthing) values(10,12)"
So the sql statement is wrong because it thinks you want to insert 2
variables 10 and 12.
What can I do to make it "insert into table(decimalthing) values(10.12)" ?
PS: I'm living in Europe, we usually write decimals with a comma.