eckert1961
Registered User.
- Local time
- Today, 04:36
- Joined
- Oct 25, 2004
- Messages
- 90
Hello,
This is actually a continuation of the following post. I thought that it might be cleaner if I started a new post since the original one is several months old.
http://www.access-programmers.co.uk/...d.php?t=157053
I have a database that I use to track student's personal, grading and payment information. For my student attendance I have a report that I print off at the beginning of each month. The zip file contains a sample attendance report from one of my classes and a screenshot from my Attendance Form that I open this report from.
The first 3 dates on the report are taken from the 3 text boxes that are directly below the calendar. The remaining dates are calculated from these 3 dates. Here is an example of how the date in the 4th heading is calculated.
The reason that I test if the Third Date is blank is because I have some classes that are only run on Wednesday and Friday evenings. The attached report is for a class that is run on MWF.
This works but I'm thinking that it might be better to use a function that would populate my report's column headings with the dates that it determines for a given month for the noted weekdays. Additionally, it would be great if I could input Statutory Holidays into the function so that those dates would either not be entered into the report or possibly have that column colored grey.
Any thoughts on what would be a good approach?
Thanks and regards,
Chris
This is actually a continuation of the following post. I thought that it might be cleaner if I started a new post since the original one is several months old.
http://www.access-programmers.co.uk/...d.php?t=157053
I have a database that I use to track student's personal, grading and payment information. For my student attendance I have a report that I print off at the beginning of each month. The zip file contains a sample attendance report from one of my classes and a screenshot from my Attendance Form that I open this report from.
The first 3 dates on the report are taken from the 3 text boxes that are directly below the calendar. The remaining dates are calculated from these 3 dates. Here is an example of how the date in the 4th heading is calculated.
Code:
=IIf((IsNull(Forms![Attendance Form]!ThirdDate)),Val([Field20])+7,DatePart("d",Forms![Attendance Form]!ThirdDate))
The reason that I test if the Third Date is blank is because I have some classes that are only run on Wednesday and Friday evenings. The attached report is for a class that is run on MWF.
This works but I'm thinking that it might be better to use a function that would populate my report's column headings with the dates that it determines for a given month for the noted weekdays. Additionally, it would be great if I could input Statutory Holidays into the function so that those dates would either not be entered into the report or possibly have that column colored grey.
Any thoughts on what would be a good approach?
Thanks and regards,
Chris