Need help with complicated if statement
- From: annysjunkmail@xxxxxxxxxxxxx
- Date: 31 Jan 2006 08:42:54 -0800
Hi Group,
Would appreciate if someone could help me with a complicated if
statement.
Here the set up...(I manage as awards database for applicants)
Applicants must select at least 1 target and can have up to 7 targets
(each target is a separate record)
Particular emphasis is placed on two of those targets, i.e. Female and
<25 years of age.
Therefore if Female is not selected then it means that the applicant is
a male and if <25 is not selected then it means that the person is >25
years of age.
Therefore, I am trying to code the logic to show either one of the
following 4 situations which could arise...
1 Female <25
2 Female >25
3 Male <25
4 Male >25
Here's some sample code...obviously I am missing some clever code to
make the age work correctly if you know what I mean.
KeyTarget:
IIf([TargetGroupName]="Female","Female",IIf([TargetGroupName]<>"Female","Male"))
Could someone help me?
Thanks
Tony
.
- Follow-Ups:
- Re: Need help with complicated if statement
- From: Gina via AccessMonster.com
- Re: Need help with complicated if statement
- Prev by Date: Re: Problem with Delete query
- Next by Date: Re: Queries hurting my head!
- Previous by thread: add selected records
- Next by thread: Re: Need help with complicated if statement
- Index(es):
Relevant Pages
|