strSQL = "SELECT * FROM customer WHERE 1=1 "
IF Request.QueryString("date") <> "" Then
and Request.QueryString("date1") <> "" Then
strSQL = strSQL & " AND (Datenotified BETWEEN '"& Request.QueryString("date") &"%' and '%"& Request.QueryString("date1") &"%') "
End IF