strSQL = "SELECT * FROM customer WHERE 1=1 "
IF Request.Form("txt1") <> "" Then
strSQL = strSQL & " AND (F1 LIKE '%"& Request.QueryString("txt1") &"%') "
End IF
IF Request.Form("txt2") <> "" Then
strSQL = strSQL & " AND (F2 LIKE '%"& Request.QueryString("txt2") &"%') "
End IF