MS Access: Create a form where you can perform up to 3 search criteria that can be either text and numeric searches in Access 2003/XP/2000/97

We've provided a download to demonstrate how you can set up search functionality.

First, we've set up the form which displays the Customer records. The user can click on the Search button to perform up to 3 search criteria that are either textx or numeric.



When the Search button is pressed, the following form will appear:


The user can select up to 3 search criteria.

When the Search button is pressed, the following message box will appear:



Your form will then display the search results as follows:



Pay close attention to how the RecordSource is set on the form called frmCustomers. The RecordSource on this form is updated using VBA code and not in the Properties window.

We've also included a "Show all customers" button in case you wish to view all customer records, and a "Generate Report" button to display a report of the search results.