PC Review


Reply
Thread Tools Rate Thread

Cross Tab Query?

 
 
vvariety
Guest
Posts: n/a
 
      10th Feb 2011
I have a simple table with the following fields; jobid, country,
state, and county, i use this for a report that looks like this

Country, State, County
USA PA Washington
Allegheny
Westmoreland

I would like it to look like this
Country State County
USA PA Washington, Allegheny, Westmoreland
NY Bronx, Manhattan, Brooklyn

etc.

Any ideas would be a great help.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      10th Feb 2011
On Thu, 10 Feb 2011 09:54:54 -0800 (PST), vvariety <(E-Mail Removed)>
wrote:

>I have a simple table with the following fields; jobid, country,
>state, and county, i use this for a report that looks like this
>
>Country, State, County
> USA PA Washington
> Allegheny
> Westmoreland
>
>I would like it to look like this
> Country State County
> USA PA Washington, Allegheny, Westmoreland
> NY Bronx, Manhattan, Brooklyn
>
>etc.
>
>Any ideas would be a great help.


A Crosstab can't easily do this, but you can get this concatenation with the
help of a little bit of VBA code:

http://www.mvps.org/access/modules/mdl0004.htm
--

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
How do I set up a parameter query in a cross tabs query? =?Utf-8?B?S2lyaw==?= Microsoft Access Queries 13 5th Aug 2009 07:47 PM
Expression Error on Parameter Query with link to Cross Tab Query Ann B Microsoft Access Queries 8 3rd Sep 2008 05:27 PM
cross tab query liva Microsoft Access Forms 0 22nd Jun 2004 04:28 PM
cross tab query and select query =?Utf-8?B?YW5nZWw=?= Microsoft Access Queries 0 21st Apr 2004 12:51 AM
cross tab query to show all fields in a query Al Microsoft Access Queries 2 4th Dec 2003 12:49 PM


Features
 

Advertising
 

Newsgroups
 


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