if statement and absolute value

A

Annelie

I have a report where in the footer I am trying to subtract some values
Which were as such:
=Sum(Abs([payrollitem]="Hrl Vacation")*[GrossPay])
=Sum(Abs([payrollItem]="Hrl Holiday")*[GrossPay])
=Sum(Abs([employeeName]="Lastname, ADALBERTO")*[grosspay])
My report lists the payroll for the week, less Vacation and Holiday pay,
less this one employee's pay. But I just realized that I had a problem in my
formula because his gross pay also includes holiday pay. So now I am trying
to extract only his regular pay.
but my statement does not work
=IIf([employeeName]="lastName, ADALBERTO",Sum(Abs([payrollitem]="Reg
Hrl")*[grosspay]))
the result is a blank field
What is wrong with my statement?

Annelie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top