spartansFC
Programmer
Hi
I have a report based of a query. It's basically a summary report, so i only want to show totals etc.
I've managed to create totals based on one criteria
=Count(IIf([cApril2010]=Yes,0))
the above is placed in the header part of the report and works great.
but i'm stuck when i try to do a count or dcount based on 2 criteria, i have it sort of working using
=Abs(Sum([cSetting) is not null AND [cSept2009]=yes,0))
But the above lists everying (14 in total), i've tried changing the first part to [cSetting] ="" to only count when there is a value in that field as not all setting fields have a value. I was just going to do a subreport and add it to the main report but there must be a way of counting on 2 criteria.
i've attached a screenshot with dummy information on to show you what i mean. In the example, the report should only show that.
April 2009 = 0
Sept 2009 = 3
Jan 2010 = 3
April 2010 = 3
Sept 2010 = 0
Jan 2011 =0
Any ideas, thanks
Mikie
I have a report based of a query. It's basically a summary report, so i only want to show totals etc.
I've managed to create totals based on one criteria
=Count(IIf([cApril2010]=Yes,0))
the above is placed in the header part of the report and works great.
but i'm stuck when i try to do a count or dcount based on 2 criteria, i have it sort of working using
=Abs(Sum([cSetting) is not null AND [cSept2009]=yes,0))
But the above lists everying (14 in total), i've tried changing the first part to [cSetting] ="" to only count when there is a value in that field as not all setting fields have a value. I was just going to do a subreport and add it to the main report but there must be a way of counting on 2 criteria.
i've attached a screenshot with dummy information on to show you what i mean. In the example, the report should only show that.
April 2009 = 0
Sept 2009 = 3
Jan 2010 = 3
April 2010 = 3
Sept 2010 = 0
Jan 2011 =0
Any ideas, thanks
Mikie