473,507 Members | 2,405 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 1394
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
11086
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...
2
3141
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...
0
2043
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...
1
1853
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...
1
3849
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...
3
2001
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
1428
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....
1
1121
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....
5
2675
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...
8
2329
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"...
0
7223
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
7114
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
7321
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
7377
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...
0
5623
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,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
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...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.