query.sql.add('select * from sxdj where sxsj between :date1 and :date2); parameters.parambyname('date1).value:=encodedate(year, month, 1); parameters.parambyname('date2').value:=encodedate(year, month, 31);error :object or class type required m**sing operator or semicolon 20210311