G
Guest
Hi
I have a membership database where my membership data entry form includes a
combo box with all members shown in alphabetical orderwhich when clicked goes
to that record. This works fine, however I have now added an otion group with
three buttons to filter according to membership status, active and lapsed
(the first button is selected by default and is for all members ie not
filtered.
Is it possible to have my combo box reflect my filter choices. eg I click
the button for Active and the list in the combo box changes to show just
those names. I guess I need to add some more code to the after update event
of my option group but am having trouble working out what it should be. This
is the existing code:
Private Sub FilterMembers_AfterUpdate()
If FilterMembers = 2 Then
Me.Filter = "membershipstatus = 'Active'"
Me.FilterOn = True
ElseIf FilterClients = 3 Then
Me.Filter = "membershipstatus = 'Lapsed'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
I would be very grateful for any advice or suggestions
Thanks
Chris
I have a membership database where my membership data entry form includes a
combo box with all members shown in alphabetical orderwhich when clicked goes
to that record. This works fine, however I have now added an otion group with
three buttons to filter according to membership status, active and lapsed
(the first button is selected by default and is for all members ie not
filtered.
Is it possible to have my combo box reflect my filter choices. eg I click
the button for Active and the list in the combo box changes to show just
those names. I guess I need to add some more code to the after update event
of my option group but am having trouble working out what it should be. This
is the existing code:
Private Sub FilterMembers_AfterUpdate()
If FilterMembers = 2 Then
Me.Filter = "membershipstatus = 'Active'"
Me.FilterOn = True
ElseIf FilterClients = 3 Then
Me.Filter = "membershipstatus = 'Lapsed'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
I would be very grateful for any advice or suggestions
Thanks
Chris