Hi
I have a query which has a formula in it like this:
Mon2: IIf([Mon]=0," ",[Mon])
(and then I have the same for Tues2, Wed2 etc - all the days of the week)
Note that the formula for Mon is: IIf(IsNull([Test]![Mon Hours]),0,1)
and that Mon Hours is a long integer number.
What I want to do is add up Mon2+Tues2+Wed2 etc...
so to do this I put:
Daysworked: [mon2]+[tues2]+[wed2]+[thurs2]+[fri2]+[sat2]+[sun2]
And I get "11111" not 5.....???
How do I get 5?
I have a query which has a formula in it like this:
Mon2: IIf([Mon]=0," ",[Mon])
(and then I have the same for Tues2, Wed2 etc - all the days of the week)
Note that the formula for Mon is: IIf(IsNull([Test]![Mon Hours]),0,1)
and that Mon Hours is a long integer number.
What I want to do is add up Mon2+Tues2+Wed2 etc...
so to do this I put:
Daysworked: [mon2]+[tues2]+[wed2]+[thurs2]+[fri2]+[sat2]+[sun2]
And I get "11111" not 5.....???
How do I get 5?