Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ElseIIF and Between functions together 1

Status
Not open for further replies.

BrianKconner

Technical User
Jan 11, 2006
4
US
I am trying to create a formula in a query that will test the value range of another field and assign a value to the expression field.
For example:
=IIF( [ATB]![AGE] =BETWEEN 0 AND 30,30) ESLEIFF( [ATB]![AGE] =BETWEEN 31 AND 60,60.
Any help would be greatly appreciated......
 
IIf(ATB.AGE Between 0 And 30, 30, IIf(ATB.AGE Between 31 And 60, 60, 999))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top