PC Review


Reply
Thread Tools Rate Thread

Can I do this with a query?

 
 
LAS
Guest
Posts: n/a
 
      31st Aug 2010
I have a table that has many rows for every value of student_id. It has one
of two different values in the column "Category", Exclusion and
Reintegration. Each row has a numeric value in the column "Elapsed_Time".

I want to create a report that looks like this.


For various subsets, based on date.


Student Exclusion Reintegration

sum(elapsed_time) sum(elapsed_time).


Can I get the values for sets of rows into columns so I can print this
report? I've looked at the pivot table view, but couldn't get it to do what
I wanted, but if someone says that's the way to go, I'll study up on it in a
serious way.

tia
las


 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      31st Aug 2010
On Mon, 30 Aug 2010 19:18:02 -0400, "LAS" <(E-Mail Removed)> wrote:

>I have a table that has many rows for every value of student_id. It has one
>of two different values in the column "Category", Exclusion and
>Reintegration. Each row has a numeric value in the column "Elapsed_Time".
>
>I want to create a report that looks like this.
>
>
>For various subsets, based on date.
>
>
>Student Exclusion Reintegration
>
> sum(elapsed_time) sum(elapsed_time).
>
>
>Can I get the values for sets of rows into columns so I can print this
>report? I've looked at the pivot table view, but couldn't get it to do what
>I wanted, but if someone says that's the way to go, I'll study up on it in a
>serious way.
>
>tia
>las
>


A Crosstab query will do this for you; use Student as the "row header" and
Category as the "column header", elapsed_time as the Value, and Sum as the
operator.

--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access metadata repository generation query, matrix generationquery, table-generation query, array-generation query. Roy Roebuck Microsoft Access Database Table Design 1 20th Dec 2008 07:23 PM
Set sub (embedded?) query parameters using VBA, call sub query in primary query with parameters completed Kelii Microsoft Access 4 5th Feb 2007 03:01 AM
verfiy a query like Query Analyzer's parse query function =?Utf-8?B?a2V2aW4=?= Microsoft C# .NET 1 24th Dec 2005 01:33 AM
running delete query or make table query from macro or event proce =?Utf-8?B?dHJhdmVsZXI=?= Microsoft Access Queries 3 1st Mar 2005 12:01 AM
Error running query for report...but query works fine when opened separately John Microsoft Access Reports 1 21st May 2004 04:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:03 PM.