InstructionWhich7142
Registered User.
- Local time
- Today, 16:07
- Joined
- Feb 24, 2010
- Messages
- 203
I've been troubleshooting an issue where a totals query based on the above left join query (with the left join that returns the boolean field that may not exist so can be NULL) gives 1 result and if I instead have it make a table and run the same test I get a different result,
The outcome was that "NOT [field1]" only returns values from the LEFT JOINed table that exist and are false, the values that didn't exist, i.e. that were NULL, don't match that criteria, however the inverse "true" test works, because only records that exist can be true
Apart from NZ is there some other way in logic to get the result I Want? I've tried: NOT field1=TRUE but that must also end up being processed to "NOT NULL" ?
(typically this is buried in a mess of totals queries so trying to post examples is hard, also it's 2 fields, not 1, a couple of NZ's fix it but I'd like to know other workarounds)
Also it's super hard to spot because in the data view NULL looks identical to FALSE on boolean fields
The outcome was that "NOT [field1]" only returns values from the LEFT JOINed table that exist and are false, the values that didn't exist, i.e. that were NULL, don't match that criteria, however the inverse "true" test works, because only records that exist can be true
Apart from NZ is there some other way in logic to get the result I Want? I've tried: NOT field1=TRUE but that must also end up being processed to "NOT NULL" ?
(typically this is buried in a mess of totals queries so trying to post examples is hard, also it's 2 fields, not 1, a couple of NZ's fix it but I'd like to know other workarounds)
Also it's super hard to spot because in the data view NULL looks identical to FALSE on boolean fields