% mb1=chktyp(request.form("b1"),10,"") if not isnull(mb1) and mb1<>"reset" then mtrm=chktyp(request.form("aa"),100,"") mvtr=chktyp(request.form("bb"),100,"") mncr=chktyp(request.form("cc"),100,"") mopr=chktyp(request.form("dd"),100,"") whr="" if not isnull(mtrm) then whr=whr & " and a.trm=""" & mtrm & """" end if if not isnull(mvtr) then whr=whr & " and a.vtr=""" & mvtr & """" end if if not isnull(mncr) then whr=whr & " and a.ncr=""" & mncr & """" end if if not isnull(mopr) then whr=whr & " and a.opr=""" & mopr & """" end if else end if %>