A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Expressions



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2010, 12:21 PM posted to microsoft.public.access.queries
Amin
external usenet poster
 
Posts: 181
Default 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  
Old May 5th, 2010, 01:28 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.