After your most recent update and reviewing the thread I am going to recommend an Option Group rather than a toggle button as I previously described. The reason for this is that you now have three possibile options to have the user select. When there were just two then toggling back and forth between them worked quite well. Now an option group with three toggle buttons within seems appropriate.
Create an option group on your form (see Option Group tool in toolbox). Now select the Toggle Button tool and create three button within the option group. You will need to reselect the Toggle button tool each time to make another button. Name the Option Group frame an appropriate name and also name the buttons Toggle1, Toggle2, and Toggle3. Their Default values should correspond to their named number. Toggle1, default: 1, Toggle2, default: 2, Toggle3, default: 3. Resize them so that the buttons are of equal size both H eight and width. Squeeze them together and align them top and bottom. Give each Toggle button a caption that is appropriate for the action to be taken: All, Active, Inactive
Now the code to make this work goes behind the Option Group frames AfterUpdate event procedure.
Code:
Select Case Me.[i][red]optiongroupname[/red][/i]
Case 1
Me.[[i][red]CompanyComboName[/red][/i]].RowSource = "qryAll"
Case 2
Me.[[i][red]CompanyComboName[/red][/i]].RowSource = "qryActive"
Case 3
Me.[[i][red]CompanyComboName[/red][/i]].RowSource = "qryInActive"
End Select
Me.[[i][red]CompanyComboName[/red][/i]].Requery
Me.[[i][red]CompanyComboName[/red][/i]].SetFocus
Me.[[i][red]CompanyComboName[/red][/i]].Dropdown
This requires you to create three queries one for each group that you want to display. qryAll, qryActive, qryInActive
Set the RowSource of the CompanyCombo to qryAll as the default query. Also, set the default value of the Option Group to 1 which will depress the All button.
This should get you started on this process. Let me know if you need more assistance.
[COLOR=006633]Bob Scriver[/color]
[COLOR=white 006633]MSU Spartan[/color]