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

IIF function = Jet equivalent to Oracle DECODE function ?

Status
Not open for further replies.

dmh47

Programmer
Sep 17, 2002
1
US
I'm tying to output a field in a query based on another field, but need to "DECODE" the value:

Census: iff(FLAG="Y","N","Y")

The new field is named Census.
I want to display a Y if the FLAG is N, and vice versa.
FLAG is a field in the table on which the query is based.

But I keep getting syntax errors.

Anyone with a solution?

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top