Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: MS Access Left-Right

Reply  
Thread Tools
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
17-Feb-2009, 07:57 PM #1
Solved: MS Access Left-Right
I have a table with fields: NAME, TYPE, SCORE and GENDER
I want to make a report grouped on TYPE and on GENDER but the catch is: I want GENDER to be beside each other (for example GENDER:Male on the left and GENDER:Female on the right)
I hope I explained it good enough...
rbalaji's Avatar
Computer Specs
Member with 328 posts.
 
Join Date: Feb 2009
Location: Chicagoland
Experience: Intermediate
17-Feb-2009, 10:04 PM #2
You need a cross tab query. The access query builder wizard should be able to handle it quite handily. If you get stuck, post back.
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
18-Feb-2009, 08:56 AM #3
Sorry that's not what I want
I need to get from



to

slurpee55's Avatar
Computer Specs
Distinguished Member with 7,837 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
18-Feb-2009, 11:18 AM #4
Well, a way that will work - albeit a rather messy way - would be to first build two queries, one showing males and one showing females.
Then create two subreports based on each one of those - basically, a female report and a male report.
Finally, create a master report and insert the two subreports into it.
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.
My theme song... | Affero - rate me!
rbalaji's Avatar
Computer Specs
Member with 328 posts.
 
Join Date: Feb 2009
Location: Chicagoland
Experience: Intermediate
18-Feb-2009, 12:32 PM #5
I thought you wanted some kind of consolidation (types down the side and gender across the top) rather than straight reporting of all the individual results. My bad. I think in your case, slurpee55's suggestion might be the best bet.
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
18-Feb-2009, 03:02 PM #6
Yes, with slurpee55's suggestion I'm getting close , but not quite.
I want to group the report by fourth field
rbalaji's Avatar
Computer Specs
Member with 328 posts.
 
Join Date: Feb 2009
Location: Chicagoland
Experience: Intermediate
18-Feb-2009, 04:57 PM #7
Can you post a sample of what you want to see as the final output. If you group by the 4th field, will the output not look like what I envisioned with the 4th field on the sides running up and down and the gender running left-to-right across the top?
__________________
Balaji Ramanathan
-----------------------------------------
Fail-safe systems do
Operating systems don't
-----------------------------------------
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
18-Feb-2009, 05:21 PM #8
Not if there are different numbers of males and females in category...
I've attached sample in excel format.
Sheet1 is sample of data I have, and in Sheet2 is what I want to look in report
Attached Files
File Type: xls SAMPLE.xls (30.5 KB, 494 views)
rbalaji's Avatar
Computer Specs
Member with 328 posts.
 
Join Date: Feb 2009
Location: Chicagoland
Experience: Intermediate
18-Feb-2009, 05:27 PM #9
There is absolutely no way to get the format you want natively using an SQL query. What you want is multiple subreports arranged into one main report to simulate the look of the excel sheet.

Just to be clear, there is actually no grouping going on in the database sense of the term (grouping by a field has a specific meaning in database terms). All you are doing is collecting items of a particular type and arranging the collections in different parts of a page in a two-column layout.
__________________
Balaji Ramanathan
-----------------------------------------
Fail-safe systems do
Operating systems don't
-----------------------------------------
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
18-Feb-2009, 05:36 PM #10
Maybe it was bad example with excel
I want this (and I can do that with slurpee55's suggestion)
Quote:
Originally Posted by 7omislav View Post
Sorry that's not what I want
I need to get from



to

but I want additional grouping by another row (not in the pictures)
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
18-Feb-2009, 05:56 PM #11
OK, here's what I've done so far...
I want the TYPE's on left and right side of the Report1 to be alligned
Attached Files
File Type: zip SAMPLE.zip (20.3 KB, 5 views)
rbalaji's Avatar
Computer Specs
Member with 328 posts.
 
Join Date: Feb 2009
Location: Chicagoland
Experience: Intermediate
18-Feb-2009, 06:56 PM #12
OK, took a look at your report and your requirement. It is going to be very difficult to do. I will root around and see if I can think of some way to accomplish this easily, but nothing pops up right away.
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
19-Feb-2009, 06:11 AM #13
Like this?
Attached Files
File Type: zip SAMPLE.zip (34.5 KB, 8 views)
slurpee55's Avatar
Computer Specs
Distinguished Member with 7,837 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
19-Feb-2009, 05:05 PM #14
or another way
messier, too!
Attached Files
File Type: zip SAMPLE with report.zip (10.4 KB, 5 views)
7omislav's Avatar
Member with 38 posts.
 
Join Date: Feb 2008
Experience: Beginner
19-Feb-2009, 05:17 PM #15
Quote:
Originally Posted by slurpee55 View Post
messier, too!
That was just example (bad one)
Reply

Tags
access

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:44 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.