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 can I convert a custom control that calls User32 and Shell32 to work on Mono?
GridView control scroll bars are not visible on page reload
Filling a TextBox on a Form with Data from a Field from an SQL Database Table in Visual Studio 2008
HELP! Windows SBS 2008 server keeps hanging URGENT!
To change asni_padding setting of a column.
Sharepoint Webpart page load event issue
Impersonate a logged on user
Intel Sata RAID controller on RHEL 4 problem
OCS Edge Server R2 2007
Exhange 2003 mailbox permissions