I have created a database for my work and now at the end of month reports are due. I have made all the queries and everything is working great. But, my boss now wants a number that I dont know how to write the expression for. Here is a bit of background. It is for the EMS medical at a casino. So this is from a medical report. I have two yes/no boxs. One is for employee and one is for office visit. I need to be able to come up with a monthly total if an employee came in for an office visit. This is what I came up with but of course it doesn't work. Any help would be greatly appricated. I am using MS Access 2207
IIf(sum(Abs(([run info].[Employee],[run info].[office]="yes", null))) as [Employeeoffice]