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

IIF and Update Query

Status
Not open for further replies.

leadpro

Technical User
Jan 7, 2005
34
0
0
US
I have a field I'm trying to update incrementally. Here's what I came up with, but it only updates to -1. When SoldTimes=-2, it stays at -1.

IIf([SoldTimes]=0,-1,"") Or IIf([SoldTimes]=-1,-2,"") Or IIf([SoldTimes]=-2,-3,"")
 
IIf([SoldTimes]=0,-1,IIf([SoldTimes]=-1,-2,IIf([SoldTimes]=-2,-3,Null)))

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