PC Review


Reply
 
 
Paradigm
Guest
Posts: n/a
 
      25th Jun 2006
I have a table with a list of names e.g. surname, forename, telephone
number, emailaddress
I would like to show this in a table where the surname is the column heading
preferably with row heading showing what the data is.
Is this possible with a crosstab query and if so how?
Thanks
alec


 
Reply With Quote
 
 
 
 
Wolfgang Kais
Guest
Posts: n/a
 
      25th Jun 2006
Hello alec.

"Paradigm" wrote:
> I have a table with a list of names e.g. surname, forename, telephone
> number, emailaddress
> I would like to show this in a table where the surname is the column
> heading preferably with row heading showing what the data is.
> Is this possible with a crosstab query and if so how?


I think so, but it's quite horrible (the surnames should be unique):
Create a union query like the following:
Select "forename" as attribute, surname, forename as data
From [your table]
Union All
Select "telephone number" surname, [telephone number] From [your table]
Union All
Select "emailaddress", surname, emailaddress From [your tablename];

Then write a crosstabe query based on this union query that is grouping
by attribute and surname and uses the "first" or "last" function for data.
Use attribute as row heading, curname as column heading and the
"first of data" column as value.

--
Regards,
Wolfgang


 
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
Crosstab query is no longer crosstab when I include field (in repo Ben8765 Microsoft Access Reports 1 15th Oct 2009 10:01 PM
Crosstab query - want report to look like crosstab alison.justice Microsoft Access Queries 1 31st May 2009 05:35 AM
Creating Crosstab Reports from Crosstab Queries vincelts@singnet.com.sg Microsoft Access Reports 4 25th Feb 2007 01:04 AM
Crosstab form based on Crosstab query? Penny Microsoft Access Forms 1 31st Mar 2006 07:36 PM
Crosstab query with criteria, dynamic columns and crosstab report question joshblair Microsoft Access Queries 5 13th Jan 2006 09:34 PM


Features
 

Advertising
 

Newsgroups
 


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