Do you mean that you need to check a
group, several instances of a record from Table B linked to Table A?
If so, first put into a group. For display you'll need to suppress the group header and details and just show the group footer.
You'll need to do several running totals doing the various tests. A count that resets for the group and counts using some formula like
Code:
not isnull({your.field}) and
{your.field} in ["1", "2", "3"]
These would then need to be tested in a formula field, allowing you to choose the correct result. Note that running totals that find nothing come out as nulls.
I don't follow what you mean by
second of ten. If it is the second of ten records, then you can do a count to find it.
PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)