zkanoca
zkanoca

Reputation: 9928

Converting a boolean field to 'yes' or 'no' statement on select

We can convert a boolean field in MySql with

select if(bool_field_name, 'yes', 'no') ...

How can I do something like this in Access?

Upvotes: 2

Views: 565

Answers (1)

Gordon Linoff
Gordon Linoff

Reputation: 1270191

The function is iif():

select iif(bool_field_name, 'yes', 'no')

Upvotes: 2

Related Questions