H
Han
I have successfully created a form with a text box (txtLastName) and command
button to execute a search. The command button executes a sub routine which
opens a connection to the database and executes a query using the value from
the text box:
"SELECT LastName FROM Contacts WHERE LastName LIKE """ & Me.txtLastName &
"*"""
I would now like to output all matching records in a list. Ideally this list
will appear in the same form, below the text box and command button. By
default, I don't want anything to appear in the list area until a search has
been executed. If a subsequent search is executed, the existing list will
clear and the new results will be displayed.
How can this be accomplished?
Thanks,
Han
button to execute a search. The command button executes a sub routine which
opens a connection to the database and executes a query using the value from
the text box:
"SELECT LastName FROM Contacts WHERE LastName LIKE """ & Me.txtLastName &
"*"""
I would now like to output all matching records in a list. Ideally this list
will appear in the same form, below the text box and command button. By
default, I don't want anything to appear in the list area until a search has
been executed. If a subsequent search is executed, the existing list will
clear and the new results will be displayed.
How can this be accomplished?
Thanks,
Han