How to Filter Microsoft Access Forms by Multiple Status Values
Question details
The user needs to configure a Microsoft Access form to display records matching multiple specific status values while hiding unrelated records like closed ones.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Filtering records in a database form based on multiple text or numeric status criteria using VBA.
- Observed behavior
- The goal is to accurately show active records with multiple statuses using the Me.Filter property without displaying closed or irrelevant records.
Ensure you have access to the Design View of your Microsoft Access form and basic familiarity with adding VBA code to button click events.
Apply the OR Operator in VBA Using Me.Filter
Use this method to quickly filter form records based on exact text values within a specific field.
This straightforward approach utilizes VBA to set the form's filter property. By combining conditions with the OR operator, you can instruct Access to display records that meet any of the specified text criteria.
Right-click your form in the navigation pane and select 'Design View'.
Select the button you want to use for filtering. Open the Property Sheet (F4) and navigate to the 'Event' tab.
Click the ellipsis (...) next to the 'On Click' event to launch the VBA editor.
Type the filter string: Me.Filter = "Status = 'Proposal' OR Status = 'Follow-Up'"
Directly below the filter string, add this line to execute it: Me.FilterOn = True

Implement a Lookup-Table and Option-Group Design
For better long-term database maintenance, use numeric IDs linked to a lookup table rather than hardcoding text statuses.
Looking for a Lightweight and Free Office Suite?
While WPS Office does not include a direct database management tool like Microsoft Access, it is an exceptional, lightweight, and free alternative to Microsoft Office for all your document, spreadsheet, and presentation needs. Experience seamless compatibility with Word, Excel, and PowerPoint formats without the heavy subscription fees.
- 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
- 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions.
- 3. Start Creating: Open WPS Office to instantly view, edit, or create documents, spreadsheets, and presentations with high compatibility.

Frequently Asked Questions
Why is my Me.Filter code not applying the filter?
Ensure that you have included the Me.FilterOn = True statement in your VBA code immediately after defining the filter string. Without this line, Access will register the filter criteria but will not actively apply it to the form.
Can I filter by more than two status values?
Yes, you can chain multiple conditions together using the OR operator. For example, Me.Filter = "Status = 'Proposal' OR Status = 'Follow-Up' OR Status = 'In Progress'" will display records matching any of those three statuses.
How do I clear the filter to show all records again?
To clear the filter and display all records, set the filter property to an empty string (Me.Filter = "") and then turn off the filter by setting Me.FilterOn = False in a dedicated 'Clear Filter' button event.




