MikeAuz1979
Programmer
Hi Using Access 2000, I'm trying to get a query to return every date between a start and end date(supplied by a another query)
So QryDateRange looks like
Start End
01-jan-01 05-jan-01
and I want my query to output.
OutputDates
01-jan-01
02-jan-01
03-jan-01
04-jan-01
05-jan-01
I'm currently acheiving this by having a table (tblAllDates) with the field 'Dates' containing all the dates from 01-jan-01 to 31-dec-10 and then having a query that is performing a cartesian join on tblAllDates and QryDateRange and restricting tblAllDates to the required date range.
(dhookom in thread701-1082717 also states this as a solution to this problem.)
Thanks for any help
Mike
So QryDateRange looks like
Start End
01-jan-01 05-jan-01
and I want my query to output.
OutputDates
01-jan-01
02-jan-01
03-jan-01
04-jan-01
05-jan-01
I'm currently acheiving this by having a table (tblAllDates) with the field 'Dates' containing all the dates from 01-jan-01 to 31-dec-10 and then having a query that is performing a cartesian join on tblAllDates and QryDateRange and restricting tblAllDates to the required date range.
(dhookom in thread701-1082717 also states this as a solution to this problem.)
Thanks for any help
Mike