G
Guest
Hi Everyone,
I am kinda stuck on this statement. I want to check two fields within the
report using an iif statement. I want it to see if both fields are null or 0
then to move it up one. I have this already set for add and shrink. If not
I have to go into the table and edit the table for 0's all the time. I got
this to work using one field but I can't get it to work comparing two. When
I compare it to one field the ClientName disappears because it looking for
one value not two. Any suggestions?
Sarita
Example:
ClientName 2005 Budget 2006
------------- ------ --------- ------
Company1 5,000 $0
Company2 5,000 $0
This is how it shows:
ClientName 2005 Budget 2006
------------- ------ --------- ------
5,000 $0
5,000 $0
Original statement:
=IIf(Sum([2006])=0,Null+[ClientName],([ClientName]))
=IIf(Sum([2005])=0,Null+Sum([2005]),Sum([2005]))
=IIf(Sum([2006])=0,Null+Sum([2006]),Sum([2006]))
I tried this and it didn't work:
=IIf(Sum([2006] And [2005])=0,Null+[ClientName],([ClientName]))
=IIf(Sum([2005] And [2005])=0,Null+Sum([2005]),Sum([2005]))
=IIf(Sum([2006] And [2005])=0,Null+Sum([2006]),Sum([2006]))
I am kinda stuck on this statement. I want to check two fields within the
report using an iif statement. I want it to see if both fields are null or 0
then to move it up one. I have this already set for add and shrink. If not
I have to go into the table and edit the table for 0's all the time. I got
this to work using one field but I can't get it to work comparing two. When
I compare it to one field the ClientName disappears because it looking for
one value not two. Any suggestions?
Sarita
Example:
ClientName 2005 Budget 2006
------------- ------ --------- ------
Company1 5,000 $0
Company2 5,000 $0
This is how it shows:
ClientName 2005 Budget 2006
------------- ------ --------- ------
5,000 $0
5,000 $0
Original statement:
=IIf(Sum([2006])=0,Null+[ClientName],([ClientName]))
=IIf(Sum([2005])=0,Null+Sum([2005]),Sum([2005]))
=IIf(Sum([2006])=0,Null+Sum([2006]),Sum([2006]))
I tried this and it didn't work:
=IIf(Sum([2006] And [2005])=0,Null+[ClientName],([ClientName]))
=IIf(Sum([2005] And [2005])=0,Null+Sum([2005]),Sum([2005]))
=IIf(Sum([2006] And [2005])=0,Null+Sum([2006]),Sum([2006]))