This topic is locked

Advance Search

8/16/2009 5:15:10 AM
ASPRunnerPro General questions
A
amarhoun author

How to stop the search advance from not returning any result if the search criteria are empty.
I have found this for simple search:
QUOTE

if request.querystring("a")="search" and request.querystring("SearchFor")="" then

strWhereClause = whereAdd(strWhereClause,"1=0")

end if
I tried this but it didn't work for the advance search.
Thanks in Advance for your support.

J
Jane 8/17/2009

Hi,
here is a sample:

if request.querystring("a")="advsearch" and session("TableName_asearchfor")("FieldName")="" then

strWhereClause = whereAdd(strWhereClause,"1=0")

end if