I would like to filter all the rows that are:
field like "*AA*" and field not like "*BB*"
But this is returning everything instead of showing all the rows that contains AA
and doesn't contain BB
.
well now it works like expected, just restarted ms access...
Sorry for my typo... :s updated
Try this:
field like "*AA*" and field not like "*BB*"
What I found out is that MS Access will reject --Not Like "BB*"-- if not enclosed in PARENTHESES, unlike --Like "BB*"-- which is ok without parentheses.
I tested these on MS Access 2010 and are all valid:
Like "BB"
(Like "BB")
(Not Like "BB")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With