TOTALSCAUSEDBY

Is there any way I can put multiple items in this function–>TOTALSCAUSEDBY instead of one item? IF CurrReport.TOTALSCAUSEDBY = FIELDNO(Item) THEN CurrReport.SHOWOUTPUT(FALSE);

Without testing, but as FIELDNO returns an integer value this one should work… IF CurrReport.TOTALSCAUSEDBY IN [FIELDNO(Item),FIELDNO(Item2)] THEN CurrReport.SHOWOUTPUT(FALSE); Saludos Nils

Are you sure that Item refers to a field and not a record variable? If it is a record variable, you also need to specify the field itself.

I also haven’t tested it, but Nils’ code looks good.

I was also wondering about “FIELDNO(Item)” asuming that it must be a field, otherwise of course the function “FIELDNO” will not work… perhaps Iris can shed some more light on her exact need… Saludos Nils

Nil’s codes works fine, I am talking about the field, not a record variable thanks a lot!