Hi all,
I'm trying to add the results together of two counts.
My report has field for Attendance and within that field there are three possible options, Attended, Cancelled and DNA. For reporting purposes I need to have a total figure for Attended and one for DNA's, then one further that adds those two together to give total.
Have created on the report Header Text Box with Control Source of:
TextBox Name: AttendedTotal
TextBox Name: DNAtotal
This gives correct count for those two fields, my problem has been adding the two results together within another text box called: SlotsUsed
Any guidance/help would be most grateful
Cheers
Dave
I'm trying to add the results together of two counts.
My report has field for Attendance and within that field there are three possible options, Attended, Cancelled and DNA. For reporting purposes I need to have a total figure for Attended and one for DNA's, then one further that adds those two together to give total.
Have created on the report Header Text Box with Control Source of:
TextBox Name: AttendedTotal
Code:
=Count(IIf([Attendance]="Attended",0))
Code:
=Count(IIf([Attendance]="DNA",0))
This gives correct count for those two fields, my problem has been adding the two results together within another text box called: SlotsUsed
Any guidance/help would be most grateful
Cheers
Dave