IIF Statement

G

Greg

Hi All,

Can anyone see what the problem is with this and hopefully assist.

=IIf([tblStaff.Type]="Wages",[total]*[ComAx],0) Or
IIf([tblStaff.type]="Commission",[total]*[commissions],0)

Thanks

Greg
 
A

Allan Murphy

This may work

=IIf([tblStaff.Type]="Wages",[total]*[ComAx],IIf([tblStaff.type]="Commission
",[total]*[commissions],0)

In this situation I would prefer using a CASE statement.
 

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