Report List with Commas

S

S

Hello,
In my database, I have a table with Company Name, First name, Last name.
Example Data..

Shawn's Store Shawn Doe
Shawn's Store Jane Doe
Shawn's Store Peter Paul
Microsofts Store Harry Clein
Microsofts Store Count Johns
Microsofts Store Mary Smith

I would like to create a report that would group on Company name, and then
list the First name then Last name followed by a comma and continue listing
the names horizontally like so..

Shawn's Store
Shawn Doe, Jane Doe, Peter Paul

Microsofts Store
Harry Clein, Count Johns, Mary Smith


is this possible. everything i try gives me a list vertically and isn't what
i want. Any help would be greatly appreciated.
 
G

GBA

going horizontal is not database centric...which is why you are having a hard
time finding a technique.

you could probably try a crosstab query - - and then use that as a record
source for a report....I haven't ever tried this though....
 
S

S

The example is what i need however I'm having trouble converting the code for
my database.
 
J

John Spencer

Did you read the comments in the code about commenting out some lines
and commenting in some other lines?

Comment out - add an ' at the beginning of the line
Uncomment a line - remove the ' at the beginning of the line

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 
S

S

I got the code to work!

The only thing I'm wondering now...i scan the list be put into alphabetical
order by last name?
 

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