Slimjimmpc
Registered User.
- Local time
- Today, 01:08
- Joined
- Jan 22, 2011
- Messages
- 12
Trying to take todays date then show all records that are 12 months before the date. e.g. March 2010-Feb 2011
Set up just like a rolling financial report.
The problem is in my coding somewhere.
PIVOT Year([Date])*12+Format([Date],"mm")-(Year(Date())*12+Format(Date(),"mm"))+1 In (1,2,3,4,5,6,7,8,9,10,11,12);
All the table is blank but shows 1-12 in the columns. Tried Date() and Now() but neither work with In (1,2,3,4,5,6,7,8,9,10,11,12).
Thanks
Set up just like a rolling financial report.
The problem is in my coding somewhere.
PIVOT Year([Date])*12+Format([Date],"mm")-(Year(Date())*12+Format(Date(),"mm"))+1 In (1,2,3,4,5,6,7,8,9,10,11,12);
All the table is blank but shows 1-12 in the columns. Tried Date() and Now() but neither work with In (1,2,3,4,5,6,7,8,9,10,11,12).
Thanks