
Originally Posted by
ry94080
Thanks for the reply. That crossed my mind too, but i was trying to avoid having to maintain a table full of dates.
May have to go with that, if there aren't any other ideas.
Thanks again!
Not hard to do.
Create a Table for Day,Month and Year and one for Dates.
Then run this query.
Code:
INSERT INTO tblDates ( StepsDate )
SELECT DateSerial([YearNo],[MonthNo],[DayNo]) AS Dates
FROM tblDay, tblMonth, tblYear
WHERE (((DateSerial([YearNo],[MonthNo],[DayNo])) Between [Tempvars]![DtFrom] And [Tempvars]![dtTo]) And ((IsDate([MonthNo] & "/" & [DayNo] & "/" & [YearNo]))<>False))
ORDER BY DateSerial([YearNo],[MonthNo],[DayNo]);
How you determine the range is up to you. I used a form to populate the TempVars.