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
How to set a MySql root user password that has not been set
How do I use the registry to disable CTRL+O keyboard shortcuts in Windows XP/IE 6
Virus and/or Malware redirecting my links
Prioritization of List in Excel
How do I list all of the tables in a schema in DB2?
My laptop hp pavilion dv9000 suddenly doesnt start
Sharing camcorder footage
average overhead on a PIX site to site IPSec tunnel
transfering a directory with multiple files in parallel
Windows XP SP3 can't print to HP P1006 on USB Port