If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Expressions
Kindly explain to us what this expression actually means.
i got it from the sample database 2007 temlate Qty To Reorder: IIf([Qty Below Target Level]0,IIf([Qty Below Target Level][Minimum ReOrder Quantity],[Minimum Reorder Quantity],[Qty Below Target Level]),0) |
#2
|
|||
|
|||
Expressions
The expression is designed to return one of three values.
Qty To Reorder: IIf([Qty Below Target Level]0 ,IIf([Qty Below Target Level][Minimum ReOrder Quantity] ,[Minimum Reorder Quantity],[Qty Below Target Level]) ,0) If the value of [Qty Below Target Level] is zero (or Less) then return zero If the value of [Qty Below Target Level] greater than zero then return the greater of [Minimum ReOrder Quantity] or [Qty Below Target Level] Nested IIF clauses can be difficult to understand. John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County Amin wrote: Kindly explain to us what this expression actually means. i got it from the sample database 2007 temlate Qty To Reorder: IIf([Qty Below Target Level]0,IIf([Qty Below Target Level][Minimum ReOrder Quantity],[Minimum Reorder Quantity],[Qty Below Target Level]),0) |
Thread Tools | |
Display Modes | |
|
|