Yes. Here is an example where I do exactly that:
Private Function SetFilters()
Dim strFilter As String 'Used by Form Filtering procedures
On Error GoTo SetFilters_Error
With Me
'Build The Filter String
If .cboPriority <> "(All)" Then
strFilter = "[InitPriority] = " & .cboPriority
End If
If .cboOrigDate <> "(All)" Then
strFilter = AddAnd(strFilter)
strFilter = strFilter & "Format([OrigReleaseTarget],
""yyyy-mm"") = """ & _
.cboOrigDate & """"
End If
If .cboCurrDate <> "(All)" Then
strFilter = AddAnd(strFilter)
strFilter = strFilter & "[CurrentReleaseTarget] = " & .cboCurrDate
End If
If .cboInitStatus <> 0 Then
strFilter = AddAnd(strFilter)
strFilter = strFilter & "[InitStatus] = " & .cboInitStatus
End If
If .cboInitType <> 0 Then
strFilter = AddAnd(strFilter)
strFilter = strFilter & "[InitType] = " & .cboInitType
End If
If Not IsNull(.txtDescrSearch) Then
strFilter = AddAnd(strFilter)
strFilter = strFilter & "[InitShortDescr] Like ""*" &
Me.txtDescrSearch & "*"""
End If
.subInitiative.Form.Filter = strFilter
.subInitiative.Form.FilterOn = True
End With 'Me
SetFilters_Exit:
On Error GoTo 0
Exit Function
SetFilters_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & _
") in procedure SetFilters of VBA Document Form_frmStartForm"
GoTo SetFilters_Exit
End Function
Then in the After Update event of each of the combo boxes, put in
=SetFilters()
This doesn't do it with the column headers, but what I do is position each
combo just above its column.