Filtering out a based on a filled field

chellebell1689

Registered User.
Local time
Today, 02:52
Joined
Mar 23, 2015
Messages
267
Hello, I have a form that I want to filter out certain records based on if a field has data in it or not. I tried using a macro and putting the field equals "IsNotNull", but that didn't work. I just asked me what "IsNotNull" is suppose to be.

Can anyone tell me the correct way to do this via macro please?

I tried searching but was finding VBA with other filters being applied (which is not the case).

Thanks.
 
[Field] Is Not Null

Or

Not [Field] Is Null

... either one.
 
That works perfectly! Thank you!
 
You're welcome!

As an aside, if your field ever contains the empty string, i.e. "", the Is Null operator won't filter it out. So to avoid this problem, set the field's Allow Zero Length String property to No in the table.
 

Users who are viewing this thread

Back
Top Bottom