if-then-else statement in locked text box (1 Viewer)

mjwillyone

Registered User.
Local time
Today, 01:09
Joined
Aug 3, 2004
Messages
27
Friends,

I want to create an if-then-else expression that will determine the number of people in a family. It is assumed that there is a head-of-household in all cases. Also, if there is a spouse allowance, there must be a spouse. I thought that determining the number of people in the family can be found by using the following expression but it does not work. It will not even take the expression ...

if [Spouse_income_allowance] >1,2+[Number_of_children], 1+[Number_of_children]

Any ideas?

Thank you,
Mike
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 02:09
Joined
Feb 19, 2002
Messages
43,457
=IIf([Spouse_income_allowance] >1, 2+[Number_of_children], 1+[Number_of_children])
 

mjwillyone

Registered User.
Local time
Today, 01:09
Joined
Aug 3, 2004
Messages
27
Thanks!

Pat,

Thank you very much for your help. Your if-then-else statement worked perfectly!

Mike
 

Users who are viewing this thread

Top Bottom