Code:
' Apply filters button
Dim strWhere As String
'Make filter string
If Nz(Me.cboClientID, "") <> "" Then
strWhere = strWhere & "[tblInventory.ClientID]='" & Me.cboClientID & "' AND "
End If
'Apply filter
If strWhere <> "" Then
strWhere = Left(strWhere, Len(strWhere) - 5) 'Remove the extra AND
Me.frmShipDetail.Form.Filter = strWhere
Me.frmShipDetail.Form.FilterOn = True
Else
Me.frmShipDetail.Form.Filter = ""
Me.frmShipDetail.Form.FilterOn = False
End If
This can be tied to a button click or afterupdate event.