Reputation: 4665
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
Reputation: 5917
You must use an outer join and perform iif(isnull(field), true_value, false_value)
Upvotes: 1