Add an unbound combo box to the form header. Name it cboDrgStatus. Set the combo box Row Source to the statuses. (table/query or value list)
Add the following code:
Code:
Private Sub cboDrgStatus_AfterUpdate()
'filter the form recordset with value selected from combo
Me.Filter = "DrgStatus =" & Me.cboDrgStatus
Me.FilterOn = True
Me.Requery
End Sub
Add a button named "btnReset"
Code:
Private Sub btnReset_Click()
'remove filter
Me.Filter = ""
Me.FilterOn = False
Me.Requery
End Sub
i tried just a form and combo box and it filtered the table but only should one record at a time on at a time instead of every record that had approved in the column?
Was the form in Continuous form view or Single form view??