str1:='select * from tblRequisitionsp where ((CallerNo='+x+') and (IsSelected=1) and (UserType=0) and (SerialNo>=:StartSNo)) and (SerialNo<=:EndSNo))';adoquery.params['StartSNo'].value:=XXXX;
adoquery.params['EndSNo'].value:=YYYY;  //(呵呵,没有Delphi环境,我记不清了不知道是不是这样子写)