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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed constructing an expression

Status
Not open for further replies.

shteev

Programmer
Jul 15, 2003
42
I'm trying to write an expression in a Query.

I have a column of numbers, values between 1 and 10 (may be fractional). I want to construct an expression in an adjacent column that will print '+' is the value is >=9,
'-'if the value is <=2, and NULL in any other case.

Currently I'm using this expression, to just print a single character is the value is high OR low:

IIf([value]<=2 Or [value]>=9,'*',Null)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top