A
Ant
Hi,
I work in the aviation industry, and we are required to keep track of our
Flight and Duty Hours. A part of this requirement is that we show 7 day, 28
day (or 30 day depending on employer) and 365 day totals and these totals
guide us to how far off we are from our flying limits.
I have been able to create the basic calculation in a Query using "DateAdd",
but it only outputs a single figure for the current day.
What I am after looks something like this (imagine an excel spreadshee) :
Date Day Hrs Ngt Hrs Total Hr 7day 28day 365day
19/12/08 2.3 0.0 2.3 2.3 2.3 2.3
20/12/08 4.1 1.2 5.3 7.6 7.6 7.6
21/12/08 0.0 0.0 0.0 0.0 0.0 0.0
22/12/08 1.2 0.0 1.2 8.8 8.8 8.8
23/12/08 1.0 3.0 4.0 12.8 12.8 12.8
The above assumes that the 19/12/08 was the start of any flying for inexcess
of one year, so no rolling totals have been carried over.
I want to show the above "spreadsheet" style in both Report and Form, and
zero flying days must be shown as an entry, even though there may be no entry
for it (is this possible??)
Ideally, (but I imagine it may not be possible), I would like to select a
date range, say 1 Nov 08 to 30 Nov 08, which will have 30 lines (days) in the
report, but the rolling totals don't start calculating as at 1 Nov 08, it
must be able to bring the rolling totals in from prior to the start date of
the report.
Anybody able to help?? I can post more info to help.
Thanking you in advance
Ant
I work in the aviation industry, and we are required to keep track of our
Flight and Duty Hours. A part of this requirement is that we show 7 day, 28
day (or 30 day depending on employer) and 365 day totals and these totals
guide us to how far off we are from our flying limits.
I have been able to create the basic calculation in a Query using "DateAdd",
but it only outputs a single figure for the current day.
What I am after looks something like this (imagine an excel spreadshee) :
Date Day Hrs Ngt Hrs Total Hr 7day 28day 365day
19/12/08 2.3 0.0 2.3 2.3 2.3 2.3
20/12/08 4.1 1.2 5.3 7.6 7.6 7.6
21/12/08 0.0 0.0 0.0 0.0 0.0 0.0
22/12/08 1.2 0.0 1.2 8.8 8.8 8.8
23/12/08 1.0 3.0 4.0 12.8 12.8 12.8
The above assumes that the 19/12/08 was the start of any flying for inexcess
of one year, so no rolling totals have been carried over.
I want to show the above "spreadsheet" style in both Report and Form, and
zero flying days must be shown as an entry, even though there may be no entry
for it (is this possible??)
Ideally, (but I imagine it may not be possible), I would like to select a
date range, say 1 Nov 08 to 30 Nov 08, which will have 30 lines (days) in the
report, but the rolling totals don't start calculating as at 1 Nov 08, it
must be able to bring the rolling totals in from prior to the start date of
the report.
Anybody able to help?? I can post more info to help.
Thanking you in advance
Ant