I try to update a currency field in my ms acess db from a program in VB6 (sp5). Herefor I execute a SQL string-command over the active connection.
The variable total is also declared a currency type variable.
The error message tells me that there is an error in the command and that it is about the comma in the expression. This must be the comma in the variable as the decimal separator. SQL needs that to be a dot instead of a comma. I tried multiple options on the variable but it keeps ending up with the comma.
The command string :
sSQLfin = "UPDATE tbl_members SET Financialx = Financialx + " & CDbl(total)
All advice and help is welcomed !!
Thanks in advance, Jack
The variable total is also declared a currency type variable.
The error message tells me that there is an error in the command and that it is about the comma in the expression. This must be the comma in the variable as the decimal separator. SQL needs that to be a dot instead of a comma. I tried multiple options on the variable but it keeps ending up with the comma.
The command string :
sSQLfin = "UPDATE tbl_members SET Financialx = Financialx + " & CDbl(total)
All advice and help is welcomed !!
Thanks in advance, Jack