fat controller
Slightly round the bend..
- Local time
- Today, 04:41
- Joined
- Apr 14, 2011
- Messages
- 758
I will try and explain this as best I can, but please feel free to ask if I don't make any sense.
I have a report which shows five year training records for staff; when they attain their qualification, they are given an expiry date for that qualification, and they must attend 5 courses over the five year period (so one each year) and after the fifth course their qualification is renewed for a further five years.
The report shows their expiry date, and shows the date(s) of any courses they have attended, with each of these dates in its own text box.
What I would like to do is to have a textbox or label that shows the word OVERDUE based on certain criteria being met:
If there is a date in the 'course date' field, then show nothing.
If the 'course date' is null, then check to see if the course is overdue - so for course 1, the date would be the date contained in the 'expiry date' field less 4 years; for course 2 that would be 'expiry date' less 3 years and so on.
Can this be done? Or am I barking up the wrong tree trying to do it in the report, and should I be doing via some sort of expression at query level?
I have a report which shows five year training records for staff; when they attain their qualification, they are given an expiry date for that qualification, and they must attend 5 courses over the five year period (so one each year) and after the fifth course their qualification is renewed for a further five years.
The report shows their expiry date, and shows the date(s) of any courses they have attended, with each of these dates in its own text box.
What I would like to do is to have a textbox or label that shows the word OVERDUE based on certain criteria being met:
If there is a date in the 'course date' field, then show nothing.
If the 'course date' is null, then check to see if the course is overdue - so for course 1, the date would be the date contained in the 'expiry date' field less 4 years; for course 2 that would be 'expiry date' less 3 years and so on.
Can this be done? Or am I barking up the wrong tree trying to do it in the report, and should I be doing via some sort of expression at query level?