Hi, I am new to SQL and generally end up using the functions built into the query, I have to bucket records by a date by month. So far I have my first query re-format it to:
Format$([Aging 16+].[Effective Date],'yyyymm')
I used yyyymm because w/ the standard 'mmmm yyyy' it seems to calculate based on the first letter of the month.
I have gotten it to find the future months current month but just not the last full month and everything prior to. I have tried:
Between (Format$(Date()-360,'yyyymm')) And (Format$(Date()-30,'yyyymm'))
Between (Format$(1/1/1950,'yyyymm')) And (Format$(Date()-30,'yyyymm'))
Between "200001" And (Format$(Date()-30,'yyyymm'))
<(Format$(Date(),'yyyymm'))
Also I have tried some variations of these, searched the strings, and to no avail I cannot get it to work.
Any help would be appreciated.
Thanks
Peter
Format$([Aging 16+].[Effective Date],'yyyymm')
I used yyyymm because w/ the standard 'mmmm yyyy' it seems to calculate based on the first letter of the month.
I have gotten it to find the future months current month but just not the last full month and everything prior to. I have tried:
Between (Format$(Date()-360,'yyyymm')) And (Format$(Date()-30,'yyyymm'))
Between (Format$(1/1/1950,'yyyymm')) And (Format$(Date()-30,'yyyymm'))
Between "200001" And (Format$(Date()-30,'yyyymm'))
<(Format$(Date(),'yyyymm'))
Also I have tried some variations of these, searched the strings, and to no avail I cannot get it to work.
Any help would be appreciated.
Thanks
Peter