IIF statements

  • Thread starter Thread starter susanh
  • Start date Start date
S

susanh

I'm not quite sure how to write this in my expression
builder?...

if [Contract Amt] doesn't equal [Vendor Amt], then
[Contract Amt] minus [Vendor Amt], if they do equal then
[Contract Amt]


Can anyone help me?

Susan
 
Susan,

Try this.

Create a new query and add the required table to the query (suing add table)
Write the following code in the first colum.

ExPr1: IIF( [Contract Amt]=[Vendor Amt], [Contract Amt], [Contract Amt] -
[Vendor Amt] )

Save the query and execute.



SAM
 

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

Similar Threads

IIf statement Query 17
Subtracting 2fields from 1 field in query 2
delete query 1
Group same records in one field and Total in another 2
query speed 5
nested If 4
Adding 2
Access My Expression Contains Wrong number of arguments 0

Back
Top