inherited database . . . there is a form that has at least 10 cbos for providers and 15 cbos for groups. Currently each cbo opens the same form containing many subforms, the source is a query that references the form and subform names, etc., Forms!Search!cboDrID . . . etc.
I want to create one form with all cbos and a subform for values (subform will be hidden until cmd is clicked). I'm familiar with VBA for an AfterUpdate Event that references one cbo and an OnCurrent Event that references one cbo. Can anyone advise please what I need to do with the AfterUpdate and Current Events when there are so many cbos??
Private Sub providername_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[GroupNo] = '" & Me![providername] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Form_Current()
cboGroup = GroupNo
End Sub