Hi there,
any help on this would be very much appreciated.
I have a report for performance where I need to calculate networkingdays. I was able to get grossworkingsdays and holidays per user (grouping). The report is generated after I enter a timeframe on a form, i.e. 01/01/2006 until 31/01/2006. The sickdays are stored in a tblsick as this:
Name Jan Feb March April ....
A 1 1 2 5
B 0 2 4 1
Via DLookup the sickdays get correctly caclulated as long as the two dates I enter on the form are within the same month, as I format my entries so they match the tblsick column name and DLookup only looks for one column. So, for person A (B) the report correctly shows 1 (0) sickday if I entered on the form the range 01/01/2006 until 31/01/2006.
When I enter on the form a range like 01/01/2006 until 31/03/2006 I still get 1 sickday and not 2 (1+1). I understand this is because of the DLookup function.
My question is, what is the best way to overcome this and get all sickdays within the entered range? I thought about changing the tblsick structure to display one column per team member and enter each sickday individually (by row), something like this:
PersonA PersonB
03/01/2006 02/02/2006
04/02/2006 03/02/2006
.......... ..........
I would think this will somehow work but before going down that path and changing everything, is there a better and easier way. Also, entering sickdays day by day might be too much, rather than entering number of days for a total month?
Any help I would appreciate very much.
Many thanks for any feedback and assistance.
Cheers
any help on this would be very much appreciated.
I have a report for performance where I need to calculate networkingdays. I was able to get grossworkingsdays and holidays per user (grouping). The report is generated after I enter a timeframe on a form, i.e. 01/01/2006 until 31/01/2006. The sickdays are stored in a tblsick as this:
Name Jan Feb March April ....
A 1 1 2 5
B 0 2 4 1
Via DLookup the sickdays get correctly caclulated as long as the two dates I enter on the form are within the same month, as I format my entries so they match the tblsick column name and DLookup only looks for one column. So, for person A (B) the report correctly shows 1 (0) sickday if I entered on the form the range 01/01/2006 until 31/01/2006.
When I enter on the form a range like 01/01/2006 until 31/03/2006 I still get 1 sickday and not 2 (1+1). I understand this is because of the DLookup function.
My question is, what is the best way to overcome this and get all sickdays within the entered range? I thought about changing the tblsick structure to display one column per team member and enter each sickday individually (by row), something like this:
PersonA PersonB
03/01/2006 02/02/2006
04/02/2006 03/02/2006
.......... ..........
I would think this will somehow work but before going down that path and changing everything, is there a better and easier way. Also, entering sickdays day by day might be too much, rather than entering number of days for a total month?
Any help I would appreciate very much.
Many thanks for any feedback and assistance.
Cheers