Matt Brown
Registered User.
- Local time
- Today, 12:56
- Joined
- Jun 5, 2000
- Messages
- 120
What is the best method as regards searching table data through a form?
I have been looking at the archives on this subject and there seems to be different ways of doing this.
In my db i do it by several different ways:
1.Using the built in search code
2.Create a query and base the form on that query, create another form with an unbound text box and a Do.Cmd open blah de blah code on the on_click event on the button, refer to the unbound text box on the query column that you are searching so when a search string is entered in the text box and the search button pressed the the form only displays the filtered criteria.
3.Use Filters.(queries)
The second method works well but is it possible to search all fields in a table for matching criteria from a text box on the same form?
Any VBcode examples would be much appreciated.
i.e.
Create text box on main form with command button, when command button is pressed searches all text boxes on same form and filters the results out onto the same form.
Thanks
Matt
I have been looking at the archives on this subject and there seems to be different ways of doing this.
In my db i do it by several different ways:
1.Using the built in search code
2.Create a query and base the form on that query, create another form with an unbound text box and a Do.Cmd open blah de blah code on the on_click event on the button, refer to the unbound text box on the query column that you are searching so when a search string is entered in the text box and the search button pressed the the form only displays the filtered criteria.
3.Use Filters.(queries)
The second method works well but is it possible to search all fields in a table for matching criteria from a text box on the same form?
Any VBcode examples would be much appreciated.
i.e.
Create text box on main form with command button, when command button is pressed searches all text boxes on same form and filters the results out onto the same form.
Thanks
Matt