473,662 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Filtering records for Report that depend on dropdown

68 New Member
Hi,
I have a table with list of schools with teachers, gender, county, district etc. I would like to generate a report of each school with the details of teachers etc. from the selection of a school from a combo box dropdown list.
Can anyone help with this?
Thanks,
Oscar
Aug 15 '12 #1
4 1401
twinnyfo
3,653 Recognized Expert Moderator Specialist
Stoic,

When you create your report, use a query that uses the value in that Combo Box as the crteria for the School field. Then, whenever you select a school, only the info for that school will show up on the report.

Hope this helps.
Aug 15 '12 #2
zmbd
5,501 Recognized Expert Moderator Expert
Have a look at the following tutorial
http://bytes.com/topic/access/insigh...filtering-form

You'll also want to follow the links given at the bottom of the tutorial as they expand in the basic article.

-z
Aug 15 '12 #3
Stoic
68 New Member
Hi twinnyfo,
Thanks for the add; I think you are grasping the idea I am wishing to have. Example: I have a table with names of schools, county, teachers etc.
Now, I want to have a form example "report form" with a combo box with the list of schools and a button that populates, when click, the information of the school with the list of teachers in my report I have formatted as "List of teachers by School".
Can you help me with that?
Thanks.
Aug 15 '12 #4
twinnyfo
3,653 Recognized Expert Moderator Specialist
Stoic,

When you build your query, in the criteria section of the query builder, right click, then select "Build..." and you should be able to set as your criteria one of the text boxes on your form. This way, the query will only select the records that meet that criteria. Then, use this query as the record source for your report.

Could you show us what you have so far? It's impossible for us to "build" that for you without your database, and most of us have jobs, too! ;-)

If you show us what your are working on and then describe in detail what "doesn't work" we can move forward from there.

Thanks...
Aug 15 '12 #5

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

Similar topics

3
11097
by: Jason | last post by:
I am trying to filter records in a primary form based on records in related tables. The data in the related tables is being displayed in the primary form through subforms. To be more specific, I have a primary form named TestResults, which is connected to data in a table named TestResults. There are basically two other tables that are related to the TestResults table (and the primary form) named Names-Normalized and SiteAddresses. The...
2
3150
by: Luther | last post by:
I want to create a form that searches a table. The hard part is this, I'd like to have the available records filtered based on combobox selections. For example, if this were a vehicle database, I might want to filter by AutomobileType, Year, Make, Model, Color. In this case it would work like this: First all of the records are available, that is, every kind of auto. So I select from my AutomobileType combobox "2003". Now I only have...
0
2057
by: Bassem | last post by:
Hi All, I had problem when using Crystal Report in C# windows application. I create report depend upon dataset using table from SQL 2000 and add it in a C# windows application. NP: The application had 2 forms, one with preview button which will call the report from the other form and the other hold the crystal report. The time I get to run the application and preview the report by clicking the preview button from the first form I get...
1
1875
by: MLH | last post by:
I have a form (xxxxxxxxxxxxxx) with a combo-box control (yyyyyyyyyyyyyy). The rowsource property for that combo box is as follows: SELECT DISTINCTROW ., . FROM ; The SQL for qryVehicleList is ... SELECT & " " & & " " & & " & "]" AS Vehicle, tblVehicleJobs.VehicleJobID, tblVehicleJobs.OwnerID, tblVehicleJobs.AuthID, tblVehicleJobs.TowJob,
1
3872
by: hackerslacker | last post by:
I have an ordering form that use two combo boxes to filter down the records of a Products table. This worked fine with the after_Update of the first filtering the records and creating the rowsource of the second combo. The second combo's control source is the Product ID field (foriegn key) on the Orders table. Everything worked well until I decided to enhance the form by changing the second combo to an option group. Now I don't know...
3
2010
by: sdisalvo | last post by:
I'm looking for a way to filter records in a query (or report) based on a value in a field of an adjacent record. Can this be done easily? I cannot find any info in the help files. Thanks
5
1434
by: axsprog | last post by:
I am quite skilled with Access, VBQ, ADo, etc. but to I can no longer ignore the demands from clients to provide WEB enabled forms for their data - so hence I have begun to develop DAP's for some. I have discovered that my combo boxes in a header (for record filtering) will not display more than 10 records. I have set the page property "pages' to "All" and that cleared up the amount of records bein filtered but I cannot seem to change...
1
1126
by: Senna_Rettop | last post by:
Hi, I'm new to Access so this is probably a stupid question. I am creating a patient database. I want to create a form in which you enter a SSN # and that person's name and ID number will appear. The purpose of the form would be to see if the patient has a previous record or if the patient is new. I can't use dropdown lists or anything because I can't have SSNs accessible or patient info showing. Basically if you don't already have the...
5
2682
by: jonosborne | last post by:
Hi, i have managed to filter a report based on selections made in a list box but am totally confused with a message box that appears everytime i run my report. Let me explain (i apologise for being long-winded)... I have a query called qry Queue Filtered SLA Position, within this query there is a field 'Queue Group'. I also have a report called rpt Queue Filtered SLA Position I have a listbox called ListFilter. It's rowsource is equal...
8
2336
by: Jiwei06xie | last post by:
Can anyone help with filtering records ended with "?". here is the code I have tried: strWhere = strWhere & "( not like ""*" & "'?'"") AND " strWhere = strWhere & "( not Like ""*" & "scrap" & "*"") AND " Not working at all. Any help is appreciated.
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.