Grouping within a Report

G

Guest

I'm trying to create a report that prints customers grouped by first letter
of their name. I was using the left function to return first character of
product names, but instead of getting the desired "grouping" effect (the
letter "A" followed by each customer who had a name beginning with the letter
"A") each was showing up ungrouped (the letter would appear above each
customer, with the letter appearing multiple times).

WHAT I USED: =Left([chrCustName],1)
WHERE I PUT IT: In the chrCustName Header. All other fields were in the
details section.

Any help you can offer would be greatly appreciated!
 
M

Marshall Barton

Jennifer said:
I'm trying to create a report that prints customers grouped by first letter
of their name. I was using the left function to return first character of
product names, but instead of getting the desired "grouping" effect (the
letter "A" followed by each customer who had a name beginning with the letter
"A") each was showing up ungrouped (the letter would appear above each
customer, with the letter appearing multiple times).

WHAT I USED: =Left([chrCustName],1)
WHERE I PUT IT: In the chrCustName Header. All other fields were in the
details section.


You need to set the group's field/expression (in Sorting and
Grouping window) to:

=Left(chrCustName,1)

instead of the chrCustName field.
 
G

Guest

That worked perfect - thanks!!!
--
- Jennifer


Marshall Barton said:
Jennifer said:
I'm trying to create a report that prints customers grouped by first letter
of their name. I was using the left function to return first character of
product names, but instead of getting the desired "grouping" effect (the
letter "A" followed by each customer who had a name beginning with the letter
"A") each was showing up ungrouped (the letter would appear above each
customer, with the letter appearing multiple times).

WHAT I USED: =Left([chrCustName],1)
WHERE I PUT IT: In the chrCustName Header. All other fields were in the
details section.


You need to set the group's field/expression (in Sorting and
Grouping window) to:

=Left(chrCustName,1)

instead of the chrCustName field.
 

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