M
MarisB
Hi everyone...
I have a problem i can't resolve for hours...
it's all about decimal symbol in VB...
in windows regional settings "," is selected as decimal symbol, but in VB6
it's interpreted as list seperator, so when i want to assign value
(number:double), it's interpreted as 2 values seprated by comma (","), which
actually should be understood as decimal symbol... when i change decimal
symbol in regional settings to dot ("."), everything is working great, but i
wouldn't like to do so, becouse there's other programs on my pc, required ","
as decimal symbol...
is there any other better way to solve this problem? maybe it's possible to
change the number format in VB (2,54545 to 2.54545 ) or change decimal
symbol in access???
Pleaz help!!!!
here's scrap of code i used...
Dim tBillNo, tVIN as string
Dim t_totSUM as double
tBillNo="CF4354545645"
tVIN="H200MMM"
t_totSUM=100/17
inSQL = "INSERT INTO table 1 (BillNo, VIN, totSUM)" & _
"SELECT '" & tBillNo & "', '" & tVIN & "', " & t_totSUM
Set inRS = CreateObject("ADODB.Recordset")
inRS.Open inSQL, inCON, adOpenStatic
I have a problem i can't resolve for hours...
it's all about decimal symbol in VB...
in windows regional settings "," is selected as decimal symbol, but in VB6
it's interpreted as list seperator, so when i want to assign value
(number:double), it's interpreted as 2 values seprated by comma (","), which
actually should be understood as decimal symbol... when i change decimal
symbol in regional settings to dot ("."), everything is working great, but i
wouldn't like to do so, becouse there's other programs on my pc, required ","
as decimal symbol...
is there any other better way to solve this problem? maybe it's possible to
change the number format in VB (2,54545 to 2.54545 ) or change decimal
symbol in access???
Pleaz help!!!!
here's scrap of code i used...
Dim tBillNo, tVIN as string
Dim t_totSUM as double
tBillNo="CF4354545645"
tVIN="H200MMM"
t_totSUM=100/17
inSQL = "INSERT INTO table 1 (BillNo, VIN, totSUM)" & _
"SELECT '" & tBillNo & "', '" & tVIN & "', " & t_totSUM
Set inRS = CreateObject("ADODB.Recordset")
inRS.Open inSQL, inCON, adOpenStatic