Others

How to Filter Microsoft Access Forms by Multiple Status Values

Steve KSteve K Oct 19, 2026 868 views

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.

How to Filter Microsoft Access Forms by Multiple Status Values
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.
Before you start

Ensure you have access to the Design View of your Microsoft Access form and basic familiarity with adding VBA code to button click events.

Solution 1Recommended

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.

1
Open Design View

Right-click your form in the navigation pane and select 'Design View'.

2
Access the Button Properties

Select the button you want to use for filtering. Open the Property Sheet (F4) and navigate to the 'Event' tab.

3
Open the VBA Editor

Click the ellipsis (...) next to the 'On Click' event to launch the VBA editor.

4
Enter the Filter Code

Type the filter string: Me.Filter = "Status = 'Proposal' OR Status = 'Follow-Up'"

5
Enable the Filter

Directly below the filter string, add this line to execute it: Me.FilterOn = True

Apply the OR Operator in VBA Using Me.Filter
Correct Syntax: Ensure you use single quotes around the text values ('Proposal') inside the main double quotes so the VBA compiler parses the string correctly.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions.
  3. 3. Start Creating: Open WPS Office to instantly view, edit, or create documents, spreadsheets, and presentations with high compatibility.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight installation for fast startup and smooth operation.Free to use with a familiar, user-friendly tabbed interface.Built-in PDF reader, editor, and conversion tools.
microsoft office alternative - wps office

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.