G
Guest
I want to filter records on my form based on 2 criteria. The first criteria
is to filter based on [Bus Unit Full Desc], I then want to take those records
and filter on [Posting Full Acct Desc]. I've got 2 combo boxes, one for Bus
Unit, and one for Posting Full Acct Desc. Right now, the filters are
"fighting" each other, not working WITH each other - I was hoping to get them
to work together to filter down to the records I want.
Any ideas? I'm fairly new at VBA, and looking through books to try and
figure this out.
1st Combo Box
Private Sub cboBU_AfterUpdate()
' Apply or remove the filter for the option chosen by user.
Me.Filter = "[Bus Unit Full Desc] = Forms!frmBaseData!cboBU"
Me.FilterOn = True
End Sub
2nd Combo Box
Private Sub cboObject_AfterUpdate()
' Apply or remove the filter for the option chosen by user.
Me.Filter = "[Bus Unit Full Desc] = Forms!frmBaseData!cboBU"
Me.Filter = "[Posting Full Acct Desc] = Forms!frmBaseData!cboObject"
Me.FilterOn = True
End Sub
is to filter based on [Bus Unit Full Desc], I then want to take those records
and filter on [Posting Full Acct Desc]. I've got 2 combo boxes, one for Bus
Unit, and one for Posting Full Acct Desc. Right now, the filters are
"fighting" each other, not working WITH each other - I was hoping to get them
to work together to filter down to the records I want.
Any ideas? I'm fairly new at VBA, and looking through books to try and
figure this out.
1st Combo Box
Private Sub cboBU_AfterUpdate()
' Apply or remove the filter for the option chosen by user.
Me.Filter = "[Bus Unit Full Desc] = Forms!frmBaseData!cboBU"
Me.FilterOn = True
End Sub
2nd Combo Box
Private Sub cboObject_AfterUpdate()
' Apply or remove the filter for the option chosen by user.
Me.Filter = "[Bus Unit Full Desc] = Forms!frmBaseData!cboBU"
Me.Filter = "[Posting Full Acct Desc] = Forms!frmBaseData!cboObject"
Me.FilterOn = True
End Sub