HI,
I want my form (bound to my main table of clients) to only show particular records depending on which of four options my user selects in the combobox Cboclientselect (on the same form).
The combo box row source is supplied by Tblclientselect which has 2 cols: typeofclientID (autono., long integer), and typeofclient (text). - I have entered the 4 values of typeofclient (all, active, completer, leaver) in this table. (these 4 values relate to the field Exitstatus, which can have values of either completer or leaver - so ie. I want my form to show 1) All clients in the DB, 2) all clients where exitstatus isnull, 3) all clients with exitstatus of 'completer' and 4) all clients with exitstatus 'leaver'.
From previous posts I gather I need to use:
Private Sub cboclientselect_AfterUpdate()
Me.FilterOn = False
Me.FilterOn = True
End Sub
I want my form (bound to my main table of clients) to only show particular records depending on which of four options my user selects in the combobox Cboclientselect (on the same form).
The combo box row source is supplied by Tblclientselect which has 2 cols: typeofclientID (autono., long integer), and typeofclient (text). - I have entered the 4 values of typeofclient (all, active, completer, leaver) in this table. (these 4 values relate to the field Exitstatus, which can have values of either completer or leaver - so ie. I want my form to show 1) All clients in the DB, 2) all clients where exitstatus isnull, 3) all clients with exitstatus of 'completer' and 4) all clients with exitstatus 'leaver'.
From previous posts I gather I need to use:
Private Sub cboclientselect_AfterUpdate()
Me.FilterOn = False
Me.FilterOn = True
End Sub