-----Original Message-----
"Roger Bell" <
[email protected]> schreef in bericht
I am attempting to use the IIf statement as follows on a
form:
=IIf([Age]>6,"Primary",IIf[Age]>7,"Class 2"))
It will work for the first IIf, does not accept for the
second IIf. Can someone plesae help?
There is no true part in the second iif.
John
http://www.john-peskens.nl
.
Thank you John for your response. You mentioned that
there is no true part in the second iif in my statement.
Does that mean I cannot get it to work.
I have a data base which has a date of birth field and an
age field which automatically calculates when the DOB is
entered. I also have a field called School Level. I
want a statement in this to enter the respective School
level depending on age, as outlined in my statement
below. The IIf statement would expand up to Class 12 and
the idea is that the School level will increase as we
enter a new year.
This is something like I want it to look like & do:
=IIf([Age]>4 and < 5,K1, iif[age]>5 and < 6,Preprimary,iif
[age]>6 and < 7, 1)))
Any help would be greatly appreciated.
Regards
Roger Bell