
Originally Posted by
KuyaRomeo
I just need to know how to edit that sql so that I can make it SELECT WHERE field1 = textbox1 . . . only when textbox one has data in it . . otherwise, don't use it in the search criteria.
In Classic it is just
Code:
userinput=request.form("textbox_one") & ""
sql="Select * from table"
if len(userinput)>0 then
sql= sql & " where field1=" & userinput
end if
Surely NET can do that in code?
Brinkster- free development account. Not affiliated, but I sure like free. Brinkster.com