Dear all,
a double value is stored as 0,75 in my database (comma as per the regional settings).
In visual basic when I try to retrieve this value with a dlookup function I get the same result: 0,75 (comma as decimal symbol). Here's the dlookup function:
Suppose I would like to this value into another record I my SQL statement will look something like this:
This will return an error as SQL uses the comma as a seperator and expects a decimal point as decimal symbol.
So my question is. How can I convert a double 0,75 to a double 0.75 in visual basic.
Kind regards,
Hans B.
a double value is stored as 0,75 in my database (comma as per the regional settings).
In visual basic when I try to retrieve this value with a dlookup function I get the same result: 0,75 (comma as decimal symbol). Here's the dlookup function:
Code:
dim dWeight as double
dWeight = dlookup ("fldweight", "tblcustomers", "fldcustomerid = 1")
Suppose I would like to this value into another record I my SQL statement will look something like this:
Code:
INSERT INTO tblorders (fldcustomerid, fldweight) VALUES ("SomeCustomer", 0,75)
This will return an error as SQL uses the comma as a seperator and expects a decimal point as decimal symbol.
So my question is. How can I convert a double 0,75 to a double 0.75 in visual basic.
Kind regards,
Hans B.