Filter code

marmar Member Posts: 17
Hi,
I want to set a filter to select only fields with less than 2 char.
I want to do a report that only shows accounts ( from Chart of Accounts) with 2 numbers. ( this field is a code)
Does anyone know how can i do it?

Thanks

Comments

  • AlbertvhAlbertvh Member Posts: 516
    You could try
    SETFILTER("No.",'?');
    

    Albert
  • NagiNagi Member Posts: 151
    IF STRLEN("No.") > 2 THEN
      CurrReport.SKIP;
    

    Put this in the OnAfterGetRecord trigger. Should work fine, but the downside is that the report has to run through all the records.
  • marmar Member Posts: 17
    it's working!

    thanks you both!
Sign In or Register to comment.