Let's assume you call the form from another form. You could include on the calling form one or more (as needed) controls with drop down lists or whatever to select the values you want as filter options.
If the form is not based on a query that uses these controls as criteria within the query, then you must build the filter when the user clicks the button that opens the form.
If you use strFilter as the variable in your VBA code, once you have built strFilter properly, then open the form with the following statement:
DoCmd.OpenForm "frmFormName",acNormal,strFilter
Make sure you pay attention to surrounding strings (text) values with single quotes and dates with # signs when building your filter string.
If you want the user to be able to select and re-select records while the form is displayed, do the following. I'll use the simple example of the user entering an ID# to select a specific record, but you can use multiple controls and drop down boxes based on the same logic.
Add the control txtSelectedID to the form's footer (or header) area.
For txtSelectID put in the following code for the On Update property:
Dim strFilter as String
If me.txtSelectedID > "0" then
strFilter = "[IDNbr] = " &
Int(me.txtSelectID) '(put this on one line)
me.Filter = strFilter
me.FilterOn = True
me.Recalc '(or: me.Requery)
End If
For this method to work the form property of AllowEdits must be set to True. You can force the form to come showing no records by setting the form's OnOpen property to run the following code (just use a condition which can never be true):
me.FilterOn = True
me.Filter = "[IDNbr] = -1"
If you set up multiple conditions on the form, building the filter can be more complex, especially if not all conditions must have values. But in that case you would have a separate Apply Filter button (as you suggest) that would actually start the fil