Here's my SQL so far...
What I'm trying to do is get the same past date from the last three years for a report. For instance, for today I would need 12/3/2009, 12/3/2008 and 12/3/2007. There's a field called "Actual Date" which I'm hoping I can parse down to return the day and month for my report, but so far no success...any help would be greatly appreciated!!!
Many thanks!
Neal
Code:
SELECT Format(Day([Actual Date]=Day(Date())) And Month([Actual Date]=Month(Date()))) AS "Past Date" FROM [Gas Data] ORDER BY Format([Actual Date],"mm/dd/yyyy") DESC , [Gas Data].[MCF sendout] DESC , [Gas Data].[Degree Days] DESC;
Many thanks!
Neal
Comment