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

if then in a query expression

Status
Not open for further replies.

patfee

Programmer
Dec 14, 2004
78
NL
hi,
is it possible to use a if then sort of statement within a query expression?

i.e. if checkbox = true then SE_required

Thanks
PAtrick
 
yes:

SELECT F1, F2, iif(somecondition, 'Something', 'Nothing')...

where the arguments are:

iif(logical comparison, value if true, value if false)



Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
offcourse.... i keep forgetting about this piece of code...
thanks!!
PAt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top