penguinspeaks
Technical User
Hello all.
I am getting a mismatch and not sure as to why.
the database fields for all of these are decimal 5,2. the form these are coming from are from the same table.
Since they are pulled from the same table and the fields are all decimal 5,2 why woulod this be happening?
I am getting a mismatch and not sure as to why.
Code:
id = request.form("id")
v_their_damaged = request.form("their_damaged")
v_their_good = request.form("their_good")
v_their_flawless = request.form("their_flawless")
v_our_damaged = request.form("our_damaged")
v_us_good = request.form("us_good")
v_us_flawless = request.form("us_flawless")
set check1 = conn.execute("select id, usdamaged_, usused, usflawless from pricing where id = "&id&"")
var1 = check1.fields.item("usdamaged_").value
var2 = check1.fields.item("usused").value
var3 = check1.fields.item("usflawless").value
if v_their_damaged <> var1 or v_their_good <> var2 or v_their_flawless <> var3 then
strSQL = "update pricing set usdamaged_ = "&v_our_damaged&" where id = "&id&""
conn.execute (strSQL)
strSQL = "update pricing set usused = "&v_us_good&" where id = "&id&""
conn.execute (strSQL)
strSQL = "update pricing set usflawless = "&v_us_flawless&" where id = "&id&""
conn.execute (strSQL)
else
the database fields for all of these are decimal 5,2. the form these are coming from are from the same table.
Since they are pulled from the same table and the fields are all decimal 5,2 why woulod this be happening?