B
bobw
I have a combobox in the form header and I am trying to use it to
filter records by a status of "open" or "closed". Here is the code
that I am using:
Private Sub cmbfilter_AfterUpdate()
status = [Forms]![Log]![cmbfilter]
Me.Filter = "[log]![status] = '" & status & "'"
Me.FilterOn = True
Me.Form.Requery
End Sub
The problem is that when I open the form it is populated with the
first record.
When I select my status in the combo box it automatically updates the
first record with whatever status I am selecting in my filter. How do
I stop this from happening?
Thanks,
Bob W.
filter records by a status of "open" or "closed". Here is the code
that I am using:
Private Sub cmbfilter_AfterUpdate()
status = [Forms]![Log]![cmbfilter]
Me.Filter = "[log]![status] = '" & status & "'"
Me.FilterOn = True
Me.Form.Requery
End Sub
The problem is that when I open the form it is populated with the
first record.
When I select my status in the combo box it automatically updates the
first record with whatever status I am selecting in my filter. How do
I stop this from happening?
Thanks,
Bob W.