Hello Access Forum,
I've put together a form [Report Viewer], which is bound to a table [Opportunities], on which there are two combo boxes and a subform [qryTtlRev subform], whose default view is 'continuous form'. I'm trying to use the two combo boxes as controls for users to apply filters to the data that will be showed in the subform. So far, I have only one combo box in play and the desired functionality isn't quite there.
Currently, my first combo box [cbStageSelect] applies the filter, but instead of all records that meet the filter criteria being displayed, only one record is shown. How can I change this so that ALL records that fit criteria are shown?
The event code that applies the filter is as follows:
Code:
Private Sub cbStageSelect_AfterUpdate()
If cbStageSelect = "ALL" Then
DoCmd.ShowAllRecords
Else
DoCmd.GoToControl "qryTtlRev subform"
Forms![Report Viewer]![cbStageSelect].SetFocus
DoCmd.ApplyFilter , "Stage='" & Me!cbStageSelect.Value & "'"
End If
End Sub