B
BudAtLitho
Hello:
I have a form that searches a table alphabetically, using the first
letter as a filter. When I open the form and enter the search
character, all's well - the combo box displays only those records that
start with the entered character. However, I cannot get the combo box
control to refresh the search value when it is changed.
Here's the SQL:
SELECT [Roster].[EMP_ID], [Roster].[LAST_NM], [Roster].[FIRST_NM] FROM
Roster WHERE Left([LAST_NM],1)=[SearchBy] ORDER BY [Roster].
[LAST_NM];
SearchBy is a text box on the same form.
I've tried the following in OnClick, OnFocus, etc., and can't get it
to refresh:
Private Sub Combo31_GotFocus()
Forms!Attendees.SearchBy.Requery
End Sub
What am I missing?
TIA
Bud
I have a form that searches a table alphabetically, using the first
letter as a filter. When I open the form and enter the search
character, all's well - the combo box displays only those records that
start with the entered character. However, I cannot get the combo box
control to refresh the search value when it is changed.
Here's the SQL:
SELECT [Roster].[EMP_ID], [Roster].[LAST_NM], [Roster].[FIRST_NM] FROM
Roster WHERE Left([LAST_NM],1)=[SearchBy] ORDER BY [Roster].
[LAST_NM];
SearchBy is a text box on the same form.
I've tried the following in OnClick, OnFocus, etc., and can't get it
to refresh:
Private Sub Combo31_GotFocus()
Forms!Attendees.SearchBy.Requery
End Sub
What am I missing?
TIA
Bud