Click here to Skip to main content
15,921,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.
I m doing a crystal report.
Lets say i have a serial numbers in a column:
| Serial Number |
124000100,124000101,124000102,124000103,124000104,


I wan the values to be something like this in the crystal report view
| Serial Number |
<124000>
100,101,102,103,104

means that the same value infront is grouped,categorized under one duplicate value.

How may i do this?
Any ideas guys?
Posted

1 solution

You need to get the part of Serial Number in column1 and the last 3 signs in column2.
I don't know which database you use. In MS Access or in MS SQL Server you can "ask" your database like this:
SELECT Left([Serial Number],6) As FPartSN, Right([Serial Number],3) As LPartSN
FROM TABLE1;

where TABLE1 is the name of your table.

It whould help you to group duplicated values.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900