date due calculation

L

lynn atkinson

I have a field which calculates and displays when a
refresher course is due based on qualification duration
field. However, some courses never expire and do not need
to be refreshed. How do I deal with this? At the moment, I
am putting in a large number of months such as 1000 months
so the date due is about the year 3000 and therefore is
not flagged as being due soon.
My calculation at present is as follows:

calc date due: Max((DateAdd("m",[course details]!
[qualification duration],[event schedule]![eventdate])))

ie add the qualification duration on to the event date to
give the date due.
If a number of refresher courses have been attended, only
the last one is displayed.

If there is no qualification duration ie the course only
needs to be done once, how do I address this.

thanks in advance
 
B

Bob

You can use an IIf statement in the calculation:

IIf([qualification duration] Is
Null,WhateverYouWantToSee,Max((DateAdd("m",[course
details]!
[qualification duration],[event schedule]![eventdate]))))
 
M

Mike Painter

Bob said:
You can use an IIf statement in the calculation:

IIf([qualification duration] Is
Null,WhateverYouWantToSee,Max((DateAdd("m",[course
details]!
[qualification duration],[event schedule]![eventdate]))))
This will work but qualification duration should never be allowed to be
Null
I would add a qualification required field and make it boleen cxxcx
 
M

Mike Painter

Mike said:
Bob said:
You can use an IIf statement in the calculation:

IIf([qualification duration] Is
Null,WhateverYouWantToSee,Max((DateAdd("m",[course
details]!
[qualification duration],[event schedule]![eventdate]))))
This will work but qualification duration should never be allowed to
be Null
I would add a qualification required field and make it boleen cxxcx

Let's try that again. I would make it boolean (forget the cxxcx) and build a
query on that.
A date would be allowed to remain null only if the qualification required
field was no.
 

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

statement too complicated? 1
conditional formatting 1
query for latest course 1
#name? error 3
Automatic alerts in excel 3
wrong expression 1
Conditional formating on calculated fields 3
last date in sub form 1

Top