Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Group By For More Than One Group 1

Status
Not open for further replies.

Bluejay07

Programmer
Mar 9, 2007
780
CA
Hello,

I am working on a report in which I am setting the group by section based on an ID field. I would like to know if it's possible to use the group by function to group several similar groups together?

Here is an example of the various ID fields:
ABC
ABC1
ABC2
ABC3
XYZ
XYZ1
XYZ2
XYZ3

Instead of having 8 separate sections, I would like to group the similar groups together, therefore I would only end up with 2 groups: ABC and XYZ.

ABC would contain ABC, ABC1, ABC2, etc.
XYZ would contain XYZ, XYZ1, XYZ2, etc.

Any advice would be appreciated.
Thanks.

If at first you don't succeed, then sky diving wasn't meant for you!
 
you could create a formula and then group on that formula.

//{@First3}
LEFT({YourTable.YourField},3)
 
Thank you.
I will give that a try.

If at first you don't succeed, then sky diving wasn't meant for you!
 
Thank you. Your response seems to be exactly what I was looking for.

If at first you don't succeed, then sky diving wasn't meant for you!
 

These forums have been a great help to me.

I am happy to have been able to help you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top