Using IIF in text field in report

herbertioz

Registered User.
Local time
Today, 21:44
Joined
Nov 6, 2009
Messages
66
Hi!

I need some help on If statements...

Code:
=IIf([GevinstTap]=True;Sum([AntallPips]))

GevinstTap is a true/false field and AntallPips is a number field.

I want to calculate the Sum of all fields who are True.
Can someone help me? I know it is a simple thing..but

Herbertioz
 
I'd reverse it:

=Sum(IIf([GevinstTap]=True, [AntallPips], 0))
 
Yes..:) Thanks!

the new code that works:

Code:
=Sum(IIf([GevinstTap]=True;[AntallPips]))
 

Users who are viewing this thread

Back
Top Bottom