E
Emases
I have a toggle button in the header of a form that filters the
records. It displays all records, and filters out those tasks that are
not complete.
There is a combo box created using the wizard that is used to find
records based on the [Job_No] which is not a primary key.
Its code is:
Sub Combo38_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[Job_No] = " & Me![Combo38]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
However, when the form is filtered to display only uncomplete tasks
(e.g. 80 records out of 200), the combo box still shows [Job_No]s for
200 records not the 80 that exist after the filter has been applied.
Please can you advise on the coding necessary to update the combo box
accordingly.
Ta
Steven
records. It displays all records, and filters out those tasks that are
not complete.
There is a combo box created using the wizard that is used to find
records based on the [Job_No] which is not a primary key.
Its code is:
Sub Combo38_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[Job_No] = " & Me![Combo38]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
However, when the form is filtered to display only uncomplete tasks
(e.g. 80 records out of 200), the combo box still shows [Job_No]s for
200 records not the 80 that exist after the filter has been applied.
Please can you advise on the coding necessary to update the combo box
accordingly.
Ta
Steven