How do i use SETFILTER to avoid certain G/L Accounts

fmhiguefmhigue Member Posts: 290
edited 2005-12-21 in Navision Attain
I got the following code

CompanyInfo.GET;
IF (CompanyInfo."Company ID" = CompanyInfo."Company ID"::"DSI MEX") THEN BEGIN

FromSalesInvLine.SETFILTER(Quantity,'>0');
FromSalesInvLine.SETFILTER("No.",'<>256002-0000');
FromSalesInvLine.SETFILTER("No.",'<>135014-0000');

It works but it only ommits one or the other G/L account.

If I do it like this it does not include any line
//FromSalesInvLine.SETFILTER("No.",'%1&%2','<>256002-0000','<>135014-0000');

Which is the right way to do it?

Thank u a lot

Comments

Sign In or Register to comment.