Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding missing rows

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
US
I have a report that pulls back a list of accounts.

Each row comes back with

Account Num
Admit_Date
Service Date

I need to find any missing rows that are between the Admit Date and Max Service Date.

Can anyone think of a technique i can use in crystal to report back the missing service dates?
 
Hi,
How are 'missing rows' determined and identified..If you mean that there should be a record for every date between those 2 dates, then you will need to create a calendar table ( 1 row for each date) and join it to your datatable



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
You could find gaps by sorting by date and subtracting the Date from the Next (Date). If the difference is greater than 1 you have a gap.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top