' first: Do we use AND or OR between clauses in the WHERE?
AndOr = Request.Form("ANDOR")
If casenum <> "" Then
If where <> "" Then where = where & AndOr
where = where & " CaseNumber LIKE '%" & Replace(casenum,"'","''") & "%'"
End If