I assume each group has several invoices, and you don't want to see the group if all invoices are closed. But if one of them is open you want to see open and closed. (If you just want to see open invoices, that can be done by testing in record selection, saving a lot of work.)
Assuming you want to see both open and closed, a neat method would be to add the invoices twice. First just open invoices, then open invoices linked to all invoices using whatever it is you use to group. You'd also need a lower-level group based on invoice, since this method is likely to give you the same record several times.
Failing this, you might be able to do a summary total based on the open date. Maximum and minimum, which would probably not work if you do it on a date with null values, but you could use a formula field like
Code:
if isnull({OpenDate}) then "None"
else ToText({OpenDate}, "dd/MM/yy")
This would give a maximum of 'None' when there are open invoices, you can suppress the group that way. (Groups can be selected using Report > Selection Formulas > Group in Crystal 10, not sure if 8 could do that.)
If you're not already familiar with Crystal's automated totals, see FAQ767-6524.
![[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)