Link to home
Start Free TrialLog in
Avatar of Katy_H
Katy_HFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Using the 'or' operand

Hi

I'm sure that this is a really basic problem, but I can't seem to get it to work. Basically, I want to suppress  subreport on the basis of either of two reports being null. The formula I have is:

{@Debtor Indicator} <> "" or {@EEC Indicator} <> ""

Either of these works fine, but in combination they don't work. How do I combine them so that the subreport is suppressed if either of the above conditions is met?

Many thanks,
Avatar of tigin44
tigin44
Flag of Türkiye image

use paranthesis

({@Debtor Indicator} <> "") or ({@EEC Indicator} <> "")
IF {@Debtor Indicator} <> "" or IF {@EEC Indicator} <> ""
Avatar of Katy_H

ASKER

Sorry, Neither of the above suggestions work. I have already tried to use parenthesis and this makes no difference - again either of the two formulas work on their own, but not in combination.

I have also previously tried using the 'IF' function, but this returns an error - 'the keyword 'then' is missing'
ASKER CERTIFIED SOLUTION
Avatar of Spykair
Spykair
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help.

Spykair