user3791372
user3791372

Reputation: 4665

Access SQL - How do I return a boolean if a joined row exists or not

I'm putting together a query for the datasource for a tabular form. Amongst other data, I want to show a checkbox if a row exists in a joined table and return it as a field for the checkbox to bind to.

Can the boolean be retrieved with one query, or will it have to be a fudge with VBA?

Upvotes: 0

Views: 349

Answers (1)

Krish
Krish

Reputation: 5917

You must use an outer join and perform iif(isnull(field), true_value, false_value)

Upvotes: 1

Related Questions