gdev
Technical User
- Mar 12, 2001
- 38
Hello
I would like to group dates by the current year's quarter, excluding previous years dates.
But I need to total previous years transactions in the groups footer, if less than zero.
The following is what I am using in the group header text box control source:
IIf(DatePart("yyyy",[transactiondate])=DatePart("yyyy",Date()),DatePart("q",[transactionDate])) - doesn't work
Also I have attemtpted to use Year([TransactionDate]= Year(Now())in the group section text box control
source. For some reason, it doesn't work. What am I doing wrong.
My idea was to do all the work in a report instead of using several queries
because eventually I am going to have to group on month, 45 days, quarter and Year.
Ex.
date field2 field3 amount
1/21/2001 -1,345,579
3/27/2002 100,347
4/18/2004 17,220
I would like to group dates by the current year's quarter, excluding previous years dates.
But I need to total previous years transactions in the groups footer, if less than zero.
The following is what I am using in the group header text box control source:
IIf(DatePart("yyyy",[transactiondate])=DatePart("yyyy",Date()),DatePart("q",[transactionDate])) - doesn't work
Also I have attemtpted to use Year([TransactionDate]= Year(Now())in the group section text box control
source. For some reason, it doesn't work. What am I doing wrong.
My idea was to do all the work in a report instead of using several queries
because eventually I am going to have to group on month, 45 days, quarter and Year.
Ex.
date field2 field3 amount
1/21/2001 -1,345,579
3/27/2002 100,347
4/18/2004 17,220