473,473 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

BUidlling a query/report with several keys

41 New Member
I have a database that consists of several tables all linked by a school id number.The other tables hold data related to the schools. Another field common to all tables is a date field. I could use some direction on how to structure a query that selects data by school and year. The linked tables hold data for a number of years and I need to query and report on just one year at a time by school. For example, for each school I need all the data for 2008. In essence I am filtering the data by year but I ma not sure how to do this for my report. Thanks for getting me started.
Feb 28 '08 #1
3 1182
Delerna
1,134 Recognized Expert Top Contributor
You could have a form that has textboxes at the top where the user enters the year and the school.
Your queries could then use those textboxes as selection criteria.

The textboxes could be invisible and updated from combo boxes when the user selects something from the dropdown list.

Is that the sort of thing you mean?
Feb 28 '08 #2
patriciashoe
41 New Member
You could have a form that has textboxes at the top where the user enters the year and the school.
Your queries could then use those textboxes as selection criteria.

The textboxes could be invisible and updated from combo boxes when the user selects something from the dropdown list.

Is that the sort of thing you mean?
Actually that is what I am doing on a form to see the data for a given year. Now, how do I do the same thing to produce a report? I have some code in the form that filters each related table. Could I use a similar report in constructing a report?

Thanks
Feb 29 '08 #3
Delerna
1,134 Recognized Expert Top Contributor
You could.
You could also base the report off a query that is using those controls on the form as filters. The form would of course need to be open when you call the report, perhaps from a button on the form.
Feb 29 '08 #4

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

Similar topics

2
by: seansan | last post by:
Hi, suppose I have one report that reports some data to me based on a functional area that I define. We have about 20 func_areas and every time the report is the same. Is there some way to have...
13
by: Sue | last post by:
I'm working on a database that keeps track of employees hired by a general contractor on a project by project basis. These employees are hired to work on a project and are then laid off either at...
4
by: Richard Hollenbeck | last post by:
The following query takes about one second to execute with less than 1,000 records, but the report that's based on it takes from 15-30 seconds to format and display. That's frustrating for both me...
2
by: st_moose | last post by:
I have a query that the user inputs last name of the customer and wants the output to be a specific form (that form is the form that all the information is entered originally). How do I set up the...
5
by: Bob Alston | last post by:
I have a where used utility that shows where any table or query is used - in a query, form or table. I would like some kind of diagram that shows these relations. I have some reports that...
1
by: Markus Neifer | last post by:
Hi, i've tried to query the dictionary for indexes on a table as follows: SELECT KEYS.COLNAME, KEYS.COLNO, KEYS.COLSEQ, KEYS.ORDERING FROM SYSIBM.SYSKEYS KEYS, SYSIBM.SYSINDEXES IDXS WHERE...
5
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
2
by: Jimmy Stewart | last post by:
Ok, I'm trying to write a query that is starting to wear me down. What I'm trying to do is create a year end report that gets sent to all of my customers who meet two criteria. One they are...
4
by: lorirobn | last post by:
Hi, I have a report displaying items that are missing from a room. I created 2 queries, the first getting the items IN the room, and the second being an "unmatched" query that references the...
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,...
0
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...
1
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...
0
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
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.