S
|
Sushy99 10/16/2003 |
Hi, |
![]() |
Sergey Kornilov admin 10/19/2003 |
Hi, if Request.Form("action")="Search" and Request.Form("SearchFor")<>"" then strSearchFor=Trim(Request.Form("SearchFor")) strSearchOption=Trim(Request.Form("SearchOption")) if Request.Form("SearchField")<>"AnyField" then strSQL = strSQL & " where " & AddWrappers(Request.Form("SearchField")) & StrWhere(Request.Form("SearchField"), strSearchFor, strSearchOption) else strSQL = strSQL & " where 1=0" strSQL = strSQL & " or " & AddWrappers("AREACODE") & StrWhere("AREACODE", strSearchFor, strSearchOption) strSQL = strSQL & " or " & AddWrappers("STATE") & StrWhere("STATE", strSearchFor, strSearchOption) strSQL = strSQL & " or " & AddWrappers("MAJORCITIES") & StrWhere("MAJORCITIES", strSearchFor, strSearchOption) end if end if
if Request.Form("action")="Search" and Request.Form("SearchFor")<>"" then strSearchFor=UCase(Trim(Request.Form("SearchFor"))) strSearchOption=Trim(Request.Form("SearchOption")) if Request.Form("SearchField")<>"AnyField" then strSQL = strSQL & " where UCase(" & AddWrappers(Request.Form("SearchField")) & ") " & StrWhere(Request.Form("SearchField"), strSearchFor, strSearchOption) else strSQL = strSQL & " where 1=0" strSQL = strSQL & " or UCase(" & AddWrappers("AREACODE") & ") " & StrWhere("AREACODE", strSearchFor, strSearchOption) strSQL = strSQL & " or UCase(" & AddWrappers("STATE") & ") " & StrWhere("STATE", strSearchFor, strSearchOption) strSQL = strSQL & " or UCase(" & AddWrappers("MAJORCITIES") & ") " & StrWhere("MAJORCITIES", strSearchFor, strSearchOption) end if end if |
D
|
ducmis 1/11/2005 |
what if you are using MS SQL and it doesn't recognize UCase, what function should i use.? |
![]() |
Sergey Kornilov admin 1/13/2005 |
Hi, |