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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STORE THE DATE IN ONE RECORD TO GET #DAYS 1

Status
Not open for further replies.

rmill

Technical User
Feb 11, 2003
12
US
I could have 3 or more invoices for one account..I want to know the number of days between each invoice..each on a separate line and show each line..please
 
I don't have Crystal Reports installed on my computer right now so I can't tell you the exact syntax, but here's how you could do it.

Group the report by account and order the report by date of invoice, then create a formula, and subtract the date of the previous invoice from the date of current record. Drop the formula on your report, and voilà!

HTH!
 
There's a Crystal Reports built-in function, I think it's called "prev" or "previous" (there's another called "next"). So when your report is processing a record, you can get the information from the previous or the next record.

Marie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top