Help with calculations in a query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello...I have performed a calcualtion [Field1]/11
but I only want the calculation to be performed if another field has a "Yes"
How do I set this in a query? It is a bit like an IF function in a
spreadsheet.
 
IIF([OtherField]="Yes",[Field1]/11,0)

The zero at the end can be anything you want it to be if the otherfield is
not Yes
 

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

Back
Top