Help on Code for - Stop_Database Query before a value

Alex_de_KockAlex_de_Kock Bloemfontein, Free State, South Africa
edited 9:43AM in FastReport 4.0
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

Comments

  • gpigpi
    edited 9:43AM
    Try to use:
    MasterData1.Visible := <SalesSummary."DEPT_CODE"> < 21;
    
  • edited 9:43AM
    Can you change your query and write

    select * from SalesSummary
    where SalesSummary."DEPT_CODE" < 21

    Mick
  • Alex_de_KockAlex_de_Kock Bloemfontein, Free State, South Africa
    edited 9:43AM
    gpi wrote: »
    Try to use:
    MasterData1.Visible := <SalesSummary."DEPT_CODE"> < 21;
    

    Thank you!

    Worked perfectly

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.