PC Review


Reply
Thread Tools Rate Thread

CrossTab Query Access Report -

 
 
Arun vijay
Guest
Posts: n/a
 
      13th Feb 2011
I've been trying to create an access report for a cross tab query.
I've come across various posts providing solution for creating reports
for queries which have date field(months or weeks or years) for a
pivot column. Coming to my specific problem, the crosstab query
resembles as below

TRANSFORM Sum([Amount])
SELECT ProductName
FROM Employees,Sales
WHERE Employees.EmpId=Sales.EmpId
GROUP BY ProductName
PIVOT EmployeeName;

and works just fine while executing the query. Employee Name being the
Column Header, and Product Name being the row header. It might sound a
bit out of place, but while the no of employees may not exceed a max
of 15, the no of products may increase with no restrictions. Currently
assuming there are around 30 products.
Now is it possible to create an access report using this query.

 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      14th Feb 2011
Yes, it is possible. The problem being if your employee list changes the
report will have errors if someone is dropped and won't show new employees.

I believe that Duane Hookom has posted solutions to having variable columns.
Try searching on his name plus crosstab query


John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

On 2/13/2011 12:56 AM, Arun vijay wrote:
> I've been trying to create an access report for a cross tab query.
> I've come across various posts providing solution for creating reports
> for queries which have date field(months or weeks or years) for a
> pivot column. Coming to my specific problem, the crosstab query
> resembles as below
>
> TRANSFORM Sum([Amount])
> SELECT ProductName
> FROM Employees,Sales
> WHERE Employees.EmpId=Sales.EmpId
> GROUP BY ProductName
> PIVOT EmployeeName;
>
> and works just fine while executing the query. Employee Name being the
> Column Header, and Product Name being the row header. It might sound a
> bit out of place, but while the no of employees may not exceed a max
> of 15, the no of products may increase with no restrictions. Currently
> assuming there are around 30 products.
> Now is it possible to create an access report using this query.
>

 
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
Report built on a Crosstab Query (Access 2003) Dave K. Microsoft Access Reports 1 4th Nov 2008 07:10 PM
crosstab query and report in Access =?Utf-8?B?ZWxlbmE=?= Microsoft Access Reports 0 19th Oct 2006 02:56 PM
stacked column chart based on a crosstab query in an Access report pietlinden@hotmail.com Microsoft Access Reports 0 24th Sep 2006 05:16 AM
Crosstab query with criteria, dynamic columns and crosstab report question joshblair Microsoft Access Queries 5 13th Jan 2006 09:34 PM
Access 2k IDE grinds to a crawl with report based on CrossTab query astro Microsoft Access Reports 3 26th Jul 2004 02:29 PM


Features
 

Advertising
 

Newsgroups
 


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