473,788 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ 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 1194
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
1707
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 the report ask me (based on a query or something) what func_area I would like the report to be based on? ps. the report is based on a query so ultimately the selection has to be passed to the query.
13
5847
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 the end of the work they were hired to do or at the end of the project. Any employee may be hired, laid off and rehired several times during the course of time. The tables I have and the critical fields to my question are: TblEmployee EmployeeID...
4
1721
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 and the end user. The report is a student grades sheet showing the results of all his/her activities and final grade for all students in any course--one page per student. Should I break this into several smaller queries? use DAO inside the...
2
1488
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 form to print to the created form instead of to the optional columnar, tabular, datasheet or justified? Hope this makes sense. thanks
5
3905
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 require a lot of queries with query_totals and union queries to produce current day, current week, current month, current year to date and prior day, week month and year data.. these are Unioned together with appropriate keys to serve as input to a...
1
2127
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 IDXS.NAME = KEYS.IXNAME AND IDXS.CREATOR = KEYS.IXCREATOR AND IDXS.TBNAME = 'FOOBAZ' AND IDXS.TBCREATOR = 'FOOBAR' ;
5
3533
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 to 1800 stores of a national home improvement chain store. Every week I electronicaly receive an excel spreadsheet "inventory report" with 19,800 rows or records, which I import into my tblSalesData table. The table now has 10 weeks of data or...
2
2235
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 'Residential' customer AND they have had business with us during this past year. My report is based on a query. The query has two tables associated with it. One is tblClients which provides client name, account type and the other relevant mailing...
4
3134
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 first query where Item is Null. I use a subreport for the details, and the results display correctly. However, the Report_Details event of the subreport is executed about 2 or 3 times more than I would expect (I think 3 times when I have a
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
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
10177
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
10118
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
9969
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
8995
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...
0
6750
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5403
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...
3
2897
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.