IIf statement

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

Guest

Not to good on IIF statements, i need one to show

IFF qty received is greater than or = to qty ordered then show 0

i,ve tried but can not seem to get it to work

any help would be great
Thanks
Sean
 
IFF qty received is greater than or = to qty ordered then show 0

and the else case?
 
Sorry david, or else i need to have the qty received "if anything is
received sometimes there 0 received" less the qty orderd to show a balance.
ie..
ordered 10 received 10 balance 0(because it's = to or greater than) else if
ordered 10 received 9 balance 1.
hope i,ve explained this ok
Thanks for your time
Sean
 
Hi Sean,

For a start its IIf , not IFF, and the syntax is as follows
IIf(condition, true part, false part).

Hope this helps.

Good luck.

Nick
 
Then Sean was right, it is not spelled IFF, but MAX :->

MAX ([Qty_ordered]-[Qty_received],0)

A tip that I learned from usenet recently.
 

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

Subject: Need help on Iff Statement 1
IIF statement 1
IIf statement 2
Add/Subtract columns from tab to tab in same file 3
Right join not working now 2
IIF Syntax 2
IIf statement in Query 2
IIF statements 2

Back
Top