Help on Code for - Stop_Database Query before a value

Can someone maybe help me complete the code below. I need the report to only draw my departments from 1 to 20 and then stop.
if <SalesSummary."DEPT_CODE"> < 21
then
begin
;
end;
Thanx
if <SalesSummary."DEPT_CODE"> < 21
then
begin
;
end;
Thanx
Comments
select * from SalesSummary
where SalesSummary."DEPT_CODE" < 21
Mick
Thank you!
Worked perfectly