M
martin_watts
I have a table containing a start date and an end date for training courses.
I need to extract quarterly statistical information. I have added two
columns to a query where I have used the datepart function to calculate the
quarter and year in which the start and end dates fall. So I have something
like this. (NB dates in dd/mm/yy format)
Start End Startqtr Endqtr
27/01/04 27/04/04 12004 22004
30/01/04 15/07/04 12004 32004
10/07/04 01/10/04 32004 42004
I want the user to be able to enter (as in a parameter query) the quarter
and year so the query will return records where the start or end date is in
the selected quarter and where the course runs through that quarter i.e. in
the above table entering 22004 would select the first and second records in
the above table, whereas entering 32004 would select the second and third
records. I am at a loss and have been unable to find a solution. Any ideas
where to look or can anyone suggest a solution? TIA and apologies from a
newbie if the solution is blindingly obvious.
I need to extract quarterly statistical information. I have added two
columns to a query where I have used the datepart function to calculate the
quarter and year in which the start and end dates fall. So I have something
like this. (NB dates in dd/mm/yy format)
Start End Startqtr Endqtr
27/01/04 27/04/04 12004 22004
30/01/04 15/07/04 12004 32004
10/07/04 01/10/04 32004 42004
I want the user to be able to enter (as in a parameter query) the quarter
and year so the query will return records where the start or end date is in
the selected quarter and where the course runs through that quarter i.e. in
the above table entering 22004 would select the first and second records in
the above table, whereas entering 32004 would select the second and third
records. I am at a loss and have been unable to find a solution. Any ideas
where to look or can anyone suggest a solution? TIA and apologies from a
newbie if the solution is blindingly obvious.