I have a combo box which linked to a subform which display records based on the value selected in the Combo box. Straight forward enough. However I have added a selection for ALL. When the user selects this value I want the return to display all records.
The code is bound to the AfterUpdate property. and currently looks like this:
Private Sub Combo23_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
If Me![Combo23] = " ALL" Then
rs.FindFirst "[Fullname] = '" & Me![Combo23] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any tips?
The code is bound to the AfterUpdate property. and currently looks like this:
Private Sub Combo23_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
If Me![Combo23] = " ALL" Then
rs.FindFirst "[Fullname] = '" & Me![Combo23] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Any tips?