Page 1 of 1

Conditional formatting error

Posted: 03 Jun 2011, 14:56
by klocky
Sage Line 50 v16, Windows 7

I want to surpress printing of department name on an invoice if the invocie contains more than 1 department name.

I get an error with the below, can anyone point out where I've gone wrong?

if Count(INVOICE_ITEM.DEPT_NAME)>2 then SuppressPrinting=TRUE else SuppressPrinting=FALSE

Re: Conditional formatting error

Posted: 16 Jun 2011, 15:38
by brucedenney
It depends where you are in the report.

If this were in the invoice footer it might work.

The point is until you get to the footer, the report hasn't gone through all the items so doesn't know