473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to Filter Data using a Search Box?

Hi everyone.

Im new here. I had been reading several topics in line with filtering, but i cannot find one related to my concern.

Please help me to create a command button that will filter my form using a Search Box.

I mean, the value that will be inputted in the Search Box will be used as the criteria to filter the form that i am dealing.

Thank you..
Nov 11 '11 #1
4 6181
Seth Schrock
2,965 Expert 2GB
Is the Search Box on the same form that you want filtered or does the button open another form based on the Search Box?

Overall, the general principle is to create a query with the fields that you want shown in the form and the query has a criteria pointing to the search box. This is extremely simple if you are opening another form, but definitely doable either way.
Nov 11 '11 #2
The search box is on the same form...
Nov 11 '11 #3
Seth Schrock
2,965 Expert 2GB
You need to make your current form based on a query and then turn it into a subform and put the Seach box on the main form. The the query will have the Search Box as the criteria for the field that you are searching. Then all you have to do is in the After Update event of the Search box, add the following code:
Expand|Select|Wrap|Line Numbers
  1. Me.{Your subform name here}.Requery
Nov 11 '11 #4
NeoPa
32,556 Expert Mod 16PB
Try out some of what you find in Example Filtering on a Form.
Nov 11 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: jonezy | last post by:
i didnt think my sql qeury was that complicated that it would crash my web app. all im trying to do is filter data between two tables. heres my query <cfquery name="GetResults"...
0
by: Aashish | last post by:
Hi, Does anyone knows how to create roles at department level which will help filter data for the respective departments in sql reporting services? Regards, Aashish
2
by: RichieTJ | last post by:
-- Access Rookie Question-- Ok here is the situation: I have a form called frmServices, that has three fields called SvcNo, SvcName and SvcCity. I created a button that brings a popup form...
3
by: Juanjo | last post by:
I have a datagrid with two temnplate columns. When a row is in edit mode the each template columns show a dropdownlist (its datasource is a dataview). I need to filter data of second dropdownlist...
4
by: AtCor | last post by:
I am trying to filter data using count. For a given day and patient, I would like to return all the valid tests. When I use a count this way, it only returns the patients with at least 4 tests. I...
1
by: datttanand | last post by:
how to filter data in dataset? suppose i want filter the data in dataset with perticuler city..
1
by: cci5192 | last post by:
I working on a visual basic software for my laptop but i cant figure out how to filter data from Excel if a user types in a date function. Normally you enter the dat function as Date...
1
by: Mindspring | last post by:
I need some help with filtering. I not very savvy (yet) with c# so I am having a hard time figuring out how to filter results. Here is what I am trying to do. I am pulling data from a database...
5
by: Mapi | last post by:
I need help. I am new to MS Access and have been assign this project. I want to be able to filter data from a form that will be displayed on a subform. I don't know if this is possible but...
13
by: ahd2008 | last post by:
Hi everyone, I have a form for departments and personnel. There are there fields for the sake of search: DepartmentSearch as combo box Division\UnitSearch as combo box Number as combo box ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.