Update problem with numeric type: -
03-04-2010
, 12:43 PM
Using vbscript w/ MsAccess, I am trying to update a column that is a
numeric data type, where i have one sql statement in my script that
works perfectly:
''''''''
dim strSQL,rsPoll, SQLco,rsCo
strSQL="UPDATE FLO set answer1 = " & Request.Form("txtOption") & " + 1
WHERE ID = " & ID
SET rsPoll=adoCon.execute(strSQL)
''''''''
SQLco = "update FLO set auxx = " & request.Form("qco")) &" + 1 WHERE
ID=" & ID & ""
SET rsCo=adoCon.execute(SQLco)
both answer1 and auxx columns are number types, default value set at
0. The answer1 column gets its updated value no problem, but auxx ONLY
shows a zero (0) when the update statement runs, does NOT get its new
numeric value.
??
chumley |