Limits of IIF?

S

Sharae

I want a continuous form with a calculated field. But the calculation is
complex - it calculates someone's age. There is a Function CalcAge() but I
can't see the way to refer to it in an IIF statement if the birth date isn't
null. Putting this in the control source for the age test box:

=IIf(IsNull([Birthdate]),0,CalcAge())

correctly gives me 0 if there's no birth date, but "#Error" if there is one.

Is it possible to refer to a sub or function in an IIF?

newb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top