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
0
Comments
<>0100&<>0079
works in a cronus database.
Try:
FromSalesInvLine.SETFILTER("No.",'<>256002-0000&<>135014-0000');
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank you a lot