Multiple Filters on form load (1 Viewer)

shatteras

Registered User.
Local time
Today, 03:54
Joined
Apr 11, 2016
Messages
25
helloy guys, please help... i know this is simple but i tried a few things but nothing works. i want to load a form with two or up to 4 filters. with one im okay but adding another filter i don't know how to do that. here's the code

Me.Filter = "Department = 'East'"
Me.FilterOn = True

that's one filter on load event of a form. and it does work nicely.

but i want to add the following

"Department = 'East"
"Division = 'Blue'"
"Unit = 'Five'"
"Area = '2nd Floor'"

how to add them to my filter? thank you so much in advance...
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:54
Joined
May 7, 2009
Messages
19,231
use And in your filter:

Me.Filter = "Department = 'East' And Division = 'Blue' And Unit = 'Five' And Area = '2nd Floor'"
Me.FilterOn = True
 

shatteras

Registered User.
Local time
Today, 03:54
Joined
Apr 11, 2016
Messages
25
thanks! I used that earlier, but I see now that I missed a freakin quote. thank you buddy!
 

Users who are viewing this thread

Top Bottom