473,397 Members | 2,028 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,397 software developers and data experts.

How to create a search box of subform

I created a machine parts database. I created the form and the table I use a subform to display the records within the table. Now my problem is how I build the search box using textbox that can search a specific data within the subforms.

I'm new of data access I need more help. I appreciate any help from you sir...
Jul 16 '19 #1

✓ answered by NeoPa

There's a lot about this in Cascaded Form Filtering & Example Filtering on a Form.

Subforms make referencing a little more involved so Referring to Items on a Sub-Form may help.

5 2991
NeoPa
32,556 Expert Mod 16PB
There's a lot about this in Cascaded Form Filtering & Example Filtering on a Form.

Subforms make referencing a little more involved so Referring to Items on a Sub-Form may help.
Jul 17 '19 #2
Hi NeoPa about this cascading I have no idea of this. What I did is I created a table query and I use it in subform in my main form called mpis. Now I use a macro using the apply filter in where conditions I created the formula like this [parts name] like "*" & [forms] ! [SEARCH DATA] ! [TEXT59] & "*" I copy paste this line to continue with the other field to search I use or to separate it. But this procedure not working. Thank you for the reply and the link you give me I will try to follow it.
Jul 17 '19 #3
NeoPa
32,556 Expert Mod 16PB
I'll leave you to get on and find what you need then. It should all be there and available if you just look.

Cascading. Let me just explain what that means in this context so you can start to appreciate what it might be able to offer you.

ComboBoxes give you a list to select from. Simple enough. Sometimes though, a list can itself benefit from being filtered. Consider looking for a city in the world. I know countries differ in how they organise their internal structure. Here in the United Kingdom we have counties. In the USA they have states. Imagine then, a Form that allows you to select a city from anywhere in the world, but with a design to handle these two countries. There might be three ComboBoxes - cboCountry, cboCounty and cboCity. Once you've selected a country the list of counties is updated to reflect only those counties, or subdivisions if you prefer, from the selected country. If you then select one of the counties then cboCity gets updated to include only those cities within that county or state. This is cascading. Like a progression of waterfalls.

NB. I notice that the way you refer to Controls on your form is a very clumsy way so I suggest you review that after reading the article I linked to in my earlier post. In almost all cases the reference should start with Me..
Jul 17 '19 #4
Hi sir ok thank you for that I need time to study it. I have many schedules so I can study this during my spare time. I will back here if I have other questions.
Jul 17 '19 #5
NeoPa
32,556 Expert Mod 16PB
I look forward to more questions from you :-)
Jul 17 '19 #6

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

Similar topics

3
by: AW | last post by:
Hi all, I have a form (named Offices) with a subform (named Occupants) that connect with the Master/Child Field "office number". I have a combo box that allows a user to pull up a particular...
3
by: ghat12 | last post by:
Hi, I have created a form containing 5 textfields/combo boxes and a command button to conduct searches for matching records. My results are currently displayed as a separate datasheet which is...
2
by: chobo | last post by:
I'm not sure where to post this question, so sorry if it's in the wrong place. I have a design related question relating to xml files stored in a mysql database. I was wondering how some of you guys...
2
by: rjgcooper | last post by:
I have the following tables: School - contains a list of schools Staff - record staff at particular schools (school id is a foreign key) Distribution - record when materials are distributed to a...
1
by: dhivyacse | last post by:
i! how to create search engine inside the website only without using database
1
by: falcs | last post by:
I am using a search engine www.sciencedirect.com in part of my code. I want to search for keywords and find how many results there are. My code works fine, all I need is the URL to submit search...
2
by: munna | last post by:
i am creating project in vb . I want to create search engine form for project
1
by: sultan030281 | last post by:
hi! i'm beginner in access, please help me to create search button. i make form & in that form i give a text box. my wish, when I type a some name in the textbox, then I press that searchbutton,...
37
ashjones86
by: ashjones86 | last post by:
Hi All, So im looking for some help with access 2007 if at all possible. I am new to access as work has asked me to create a database, so the database side to it i have sorted i.e inputting data...
0
by: Snoop832 | last post by:
Hello, I'm looking to add a search function on my main form to search and filter my data in the subform which is in datasheet view. I have a txt62 box and a cmdsearch button. I can't figure...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.