Skip to main content

I have a SubReport that lists the LotSerialNbr’s of items in a SubReport. The goal is to just list the beginning and ending LotSerialNbr’s (MIN, MAX) as listing all of the number would be too cumbersome. The main manufactured item would be the same but with different qtys of 1 to higher numbers (such as 400, or 500). The first number may be 210324001381, 210324001382, 210324001383, 210324001384 and maybe higher, so all we would need is the 210324001381 - 210324001384.

One other issue, since in this particular case there are only four like items, the numbers are being repeated for four lines down such as:

210324001381 210324001384

210324001381 210324001384

210324001381 210324001384

210324001381 210324001384

and the first line would be the only thing needed.

 


@wmatthews1877

Can you share you Subreport file in a .Zip file so we can evaluate how it is configured?


Better yet, I managed to figure it out myself and have included it with this post.

=MIN([AMProdItemSplit.LotSerialNbr]) + ' - ' + MAX([AMProdItemSplit.LotSerialNbr])

The same concept is used in SQL Server coding.


Thank you for sharing your solution with the community @wmatthews1877!


Reply