Here is one way.
Assumptions:
1)You have a numeric field holding the invoice number.
2) You have sorted the data on the invoice number. It is in the last sort position.
3) You have selected your records in some way, by date or number.
Place the invoice number field and any other fields that you want in the detail section. Create a formula with the following code:
whileprintingrecords;
if onfirstrecord then "" else
if {table.invoice} <> Previous({table.invoice})+1 then "Missing Inovice Before This One!" else ""
Place this in the detail section.
Adjust the stuff in the quotes to your taste.
Howard Hammerman,
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269