Microsoft
Software
Hardware
Network
Question : MS Access =count on Form
I am trying to count all the records on my report that have "Yes" in "DutyAssigned" field.
I put =Count([DutyAssigned]=Yes)
in the Report Footer and I get a total of all the records. I put it in Page footer and I get #error. What am I doing worng?
Answer : MS Access =count on Form
There is no expression of that type in Access.
Use..
Sum (iif(DutyAssigned =Yes, 1,0))
This assumes DutyAssigned is a Yes/No field in the table.
If it is just text then you need..
Sum (iif(DutyAssigned ="Yes", 1,0))
Random Solutions
Photoshop - picture blurring
Show Date time on webpage -coldfusion,jquery
sql - date
Insert one field or value as another
Cant get vista to view my web site correctly!
Difference between Exchange 2010 archiving and Evault archiving
MS CRM Duplicate Detection rule not working
DELPHI 2010 -- INDY 9 or INDY 10
Check colum A for names in the name matches a sheet name in any workbook then copy to the sheet where we are quering from.
Blackberry not activinating on BES