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

if and decode statement? what can I use?

Status
Not open for further replies.

alh1002

Technical User
Mar 27, 2006
41
US
the excel equivalent of what I want
if(a<b,a-b,0)

how can i have that in sql (access) I am use to oracle where I can use decode but that doesn't work in access
 
You wanted this ?
IIf(a<b,a-b,0)

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