M
Maresdd
I have a query based on hours that employees work. The table fields include
Carer,ServiceDate,Hours,Category,Servicetype. What I need to calculate is if
an employee works more than 2 hours in say Category 3 for the day, then the
rest of categories need to be totalled for that carer for that 1 day. I've
tried select statements and dsum. Can someone point me in the right direction
please.
This is what I have tried.
Cat: IIf(DSum("[Hrs]","[awardquery]","Carer = Carer AND ServiceDate =
ServiceDate")>2,3,awardquery!Category)
I end up with every shift being a category 3. How do I set the criteria to
only look at the table where the Carer is the same and the Servicedate is the
same?
Carer,ServiceDate,Hours,Category,Servicetype. What I need to calculate is if
an employee works more than 2 hours in say Category 3 for the day, then the
rest of categories need to be totalled for that carer for that 1 day. I've
tried select statements and dsum. Can someone point me in the right direction
please.
This is what I have tried.
Cat: IIf(DSum("[Hrs]","[awardquery]","Carer = Carer AND ServiceDate =
ServiceDate")>2,3,awardquery!Category)
I end up with every shift being a category 3. How do I set the criteria to
only look at the table where the Carer is the same and the Servicedate is the
same?