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!

Expression Problem in Query 1

Status
Not open for further replies.

robcarr

Programmer
May 15, 2002
633
GB
Dear All,

I am wanting to use this formula to calculate a field

SLAHit: IIf([AHTITems]<[itemAHT],100,0)

I get an Error in the query result, the problem I believe is AHTItems is an expression, so how do I use this in the same query.

As AHTItems calculates the AHT for the item, and SLAHIT, calculates wether or not SL was hit, by checkeing AHTITems against actual target.
Can someone let me know how to use an expression result inside another expression.

Thanks



Hope this is of use, Rob.[yoda]
 
if you mean it's a calculated field in the same query, I don't think you can. You need to replace AHTItems with the formula used to calculate AHTItems.

Leslie
 
super, I knew it was easy that worked a treat


Hope this is of use, Rob.[yoda]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top