Cross Tab Query?

V

vvariety

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.
 
J

John W. Vinson

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/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top