S
Scott Hoff
I'm trying to do a simple update like I have done countless times
before.
However, when I update the empty fields in this table it places a -1
into the field rather than the enterred value.
It is indexed with duplicates allowed. It says that zero lenght is
set to yes.
What can I do about this?
if Request.form("ouserid") <> "" Then
var2 = " and userid = '" & Request.form("ouserid") & "' "
Else
var2 = " and userid is null "
End if
if Request.form("orepid") <> "" Then
var1 = " repid = '" & Request.form("orepid") & "'"
Else
var1 = " repid is null "
End if
"Update [Website Settings] set userid = '" & REquest.form("userid") &
"' and repid = '" & Request.form("repid") & "' where " & var1 & var2
& var3
Thanks!
before.
However, when I update the empty fields in this table it places a -1
into the field rather than the enterred value.
It is indexed with duplicates allowed. It says that zero lenght is
set to yes.
What can I do about this?
if Request.form("ouserid") <> "" Then
var2 = " and userid = '" & Request.form("ouserid") & "' "
Else
var2 = " and userid is null "
End if
if Request.form("orepid") <> "" Then
var1 = " repid = '" & Request.form("orepid") & "'"
Else
var1 = " repid is null "
End if
"Update [Website Settings] set userid = '" & REquest.form("userid") &
"' and repid = '" & Request.form("repid") & "' where " & var1 & var2
& var3
Thanks!