Filter on Blank Records

upasanisandipupasanisandip Member Posts: 405
Hi,
I want to filter on "Form No." column where Form no. is blank
What is wrong in folloing syntax. Giving me error.

Rec.SETFILTER("Form No.",'=''');

Thanks.

Comments

  • strykstryk Member Posts: 645
    You should use this instead:
    Rec.SETFILTER("Form No.", '=%1', '');
    
    Jörg A. Stryk (MVP - Dynamics NAV)
    NAV/SQL Performance Optimization & Troubleshooting
    STRYK System Improvement
    The Blog - The Book - The Tool
  • krikikriki Member, Moderator Posts: 9,110
    better use SETRANGE instead of SETFILTER. Use only SETFILTER if you have no other possibility.

    SETRANGE("Form No.",0); //integer/decimal
    or
    SETRANGE("Form No.",''); //text/code
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.