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

Home Posts Topics Members FAQ

Split Query Result - How to combime them together?

How do you NOT display a field when the record is not selected?

School Name: AAA BBB CCC DDD or ALL Schools

when i select AAA, the result would be only:

Student: GPA School Name
Tom 3.5 AAA
Chris 2.0 AAA

when i select all school, this is what it appears:

Student: GPA School Name

Tom 3.5 AAA
Tom 3.0 BBB
Tom 3.5 CCC
Nick 2.0 DDD
Chris 3.5 BBB
Chris 2.0 AAA

what I WANT is:

Student: GPA School Name

Tom 3.33 ALL Schools
Nick 2.0 ALL Schools
Chris 2.75 ALL Schools

How to i set up the query so that I can get the result?

Oct 26 '06 #1
2 1372

as*********@yahoo.com wrote:
How do you NOT display a field when the record is not selected?

School Name: AAA BBB CCC DDD or ALL Schools

when i select AAA, the result would be only:

Student: GPA School Name
Tom 3.5 AAA
Chris 2.0 AAA

when i select all school, this is what it appears:

Student: GPA School Name

Tom 3.5 AAA
Tom 3.0 BBB
Tom 3.5 CCC
Nick 2.0 DDD
Chris 3.5 BBB
Chris 2.0 AAA

what I WANT is:

Student: GPA School Name

Tom 3.33 ALL Schools
Nick 2.0 ALL Schools
Chris 2.75 ALL Schools

How to i set up the query so that I can get the result?
You mean somehow not show School Name? Just group by Student and don't
include School name in your query at all. Maybe you can use
fConcatChild from AccessWeb to concatenate all the school names (if
that's what you're loking for.) Otherwise, you could put the Avg(GPA)
part in the Student header of your report and then the school/school
GPA in the detail section of your report. If you go that route, you
could show/hide the school info... but that's going to require some
code.

Oct 26 '06 #2
what I want is group by Students only when no school it's selected.
That means finding the average gpa of the student in all schools. If a
school is selected, show only the average gpa of that school only

Oct 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: dogu | last post by:
Noob alert. Code is below. File is saved as a .php. What I'm trying to do: User uses 'select' box drop down list to pick a value. Value ($site) is derived from a db query. This works fine....
6
by: Pedro Fonseca | last post by:
Greetings! Can someone please help me to crack this problem? I have 4 tables: Subject, Forum, Topic and Post. A Subject groups various Forums, a Forum groups various Topics, and a Topic groups...
3
by: Joe Ventre | last post by:
I am doing a query that merges several fields into one in the result. The problem is that if any of the fields being merged together contains a null value then the resulting field is null. For...
2
by: Elhanan | last post by:
hi all.. i have the following string: 200850625~01~464~^^200850625~01~464~^^200850625~01~908~^^ which i will need to turn to a mutli-dimentional string array i used result.Split(new...
12
by: Pascal | last post by:
hello and soory for my english here is the query :"how to split a string in a random way" I try my first shot in vb 2005 express and would like to split a number in several pieces in a random way...
8
by: ronrsr | last post by:
I'm trying to break up the result tuple into keyword phrases. The keyword phrases are separated by a ; -- the split function is not working the way I believe it should be. Can anyone see what I"m...
0
by: loken0673 | last post by:
Hello All I want to Split multirow resultset to single row, multicolumn resultset my table is ProfileDetail(ProfileId bigint, PropertyId bigint PropertyValue nvarchar(400)) Table data : ...
10
by: Lloyd Harold | last post by:
I'm very new to PHP and attempting to put together a simple script for retrieving MySQL data of personal records. The MySQL table I'm using consists of: 0: id 1: name 2: location (an integer...
9
by: Sinner | last post by:
Hi, I have a field name 'USER' in tableMAIN. How do I replace the user names with corresponding user names. I can do that in xl using vlookup but now I'm trying to find a way to do that in...
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
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
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
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...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.