in a single database table I wish to test a single field for consecutive numbers and report (print) the missing entries. i.e table contains:- 11, 12, 14, 16, 17
the report would print 13, 15
Here is a simple technique that does what you want. It identifies the gaps in a sequence and shows the width of the gap. If three consecutive records are missing it will print the first and last ones missing:
Create 2 formulas called PrintFrom and PrintTo:
PrintFrom: {field} + 1
PrintTwo: Next ({field}) - 1
Put these on the detail band with the word "to" between them.
Now, suppress you details with the following condition:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.