Hi,
It's me again :-)
Just wondering if its possible to create one report using the output of two or more SQL Querries.
Currently i've got two SQL querries. one generates the total number of graduate students for the year (SQLGrad) and the other number of graduate students per course per year (SQLGradcourse) . Now, what i want to happen (if possible) is that once i clicked the report button it will generate in just one page both the results of the two querries.
Is this possible? Any help on this matter is greatly appreciated.
Cheers,
Jacko7289
3 1940
Hi,
It's me again :-)
Just wondering if its possible to create one report using the output of two or more SQL Querries.
Currently i've got two SQL querries. one generates the total number of graduate students for the year (SQLGrad) and the other number of graduate students per course per year (SQLGradcourse) . Now, what i want to happen (if possible) is that once i clicked the report button it will generate in just one page both the results of the two querries.
Is this possible? Any help on this matter is greatly appreciated.
Cheers,
Jacko7289
You can create a sub report in the main report. This is just an idea between much more. But to me I find it fine.
Abolos
I can't make it (Creating sub-report) work using the report design wizard . I got this essage..."You have chosen fields from record sources which the wizard can't connect".
Anyway here are my SQL's which i want to be reported in just one page.
SQL 1
Select DISTINCT CompletionYear, COUNT(*)
From Student
Where CompletionYear in ('2004','2005', '2006','2007')
Group By CompletionYear;
SQL 2
Select DISTINCT Course, COUNT(*)
From Student
Where CompletionYear in ('2004','2005', '2006','2007')
Group By Course;
Maybe i don't do it correctly. Any suggestion woul be greatly appreciated.
Cheers,
Jacko7289
MMcCarthy 14,534
Recognized Expert Moderator MVP
Firstly you will need to return and group by CompletionYear in the second query as well if you want the number of students per course, per year. -
Select DISTINCT Course, COUNT(*), CompletionYear
-
From Student
-
Where CompletionYear in ('2004','2005','2006','2007')
-
Group By Course, CompletionYear;
-
Also try running both queries in the query window to make sure they are working properly.
Now create a report based on the first query. Create a group by level for CompletionYear
Now when you create the subreport (in the detail section) using the wizard make sure you join on CompletionYear.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Helen |
last post by:
Hi, I'm using
VB .NET (Visual Studio 2002
Crystal Reports 9 (soon to upgrade to 10, just want 9 to work first
Win 200
When I run the crystal report independently, I can access the Oracle 7.3.4 database, no problem. db name PDTT, uid and pwd
But, when I run it via the vb .net app, it is only reading the memory of the data in the report, and therefore when I try to run a parameter, it fails. It calls me to insert server name, it...
|
by: Chris F Clark |
last post by:
In our C++ project we have some internal bug reporting macros that we
use to get useful information when the program does something
unexpected. Essentially at the point of the error, we invoke an
internal interactive debugger that knows the classes
within our system and allow us to walk around the objects that exist
at the time of the fault. It mostly works fairly well. That catch
being that we have to hand implement some of the code...
|
by: Oreo Bomb |
last post by:
I have a secured database that contains a Read-Only group. This group
has permissions to view reports, but cannot add, edit, or delete any
DB objects. One of the reports the group needs access to is generated
with a Make-Table Query. Since the Make-Table Query deletes the
previous table it created everytime it's ran, this poses a problem
since the Read-Only group doesn't have the permission to delete
objects. This causes the report...
|
by: Richard Holliingsworth |
last post by:
Hello:
Thanks for reading this. We just converted to A2002 and some of my
querries have stopped working and I can't figure out why.
Basically, anything with a "NOT" is not working.
For example:
select * from b321bl where stdverifyby <> "demonstration"
|
by: M |
last post by:
Hi all,
I am having problems figuring out the best way to query my database in
order to create a report. Perhaps someone can help me?
Background --
Consider a table with the following columns
ID, ClosedDate, OpenDate, status, calltype, Region
| |
by: Abby |
last post by:
I'm now using Cygwin as my compiler for C code. I use Dev-c++ as my
editor.
The reason why I chose Cygwin compiler instead of the compiler that
came with Dev-C++ is that I believe it uses the same environment as in
Linux, so that I don't have to write different sourcecode for both OS.
Eventhough, I don't understand about Linux much, and I'm still a
beginner in programming, I still have to make my program compatible
with both OS (Windows...
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of the html page
controls the form fields that are required. It doesn't function like
it's supposed to and I can leave all the fields blank and it still
submits the form. Also I can't get it to transfer the file in the
upload section. The file name...
|
by: Niyazi |
last post by:
Hi
I have a report that I have to run it monthly in my machine.
My code in VB.NET and I access AS400 to get data, anaysie it and send into
pre formated Excel sheet. The data consist of 9000 rows.
I use data table and with for loop I send the data row by row in
pre-formated Excel sheet.
My machine is:
|
by: Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+ |
last post by:
I have created a report. This report needs to display records
between two dates entered by the user. I put two text boxes on the
report so I can enter the start and end date - I set them to use an
input mask of 'short date' format. The problem is that when I enter
anything in these text boxes, as soon as the field looses focus, the
text is cleared out - thus the text box is left blank. I have a button
on the form that calls the requery...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
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...
| |