|
-
Nov 25th, 2006, 10:35 AM
#1
Thread Starter
New Member
How to refer to previous fields in 2 different row
HI there!
I'm new in Crystal Report programming. I have a report that generates dates in rows. I would like to calculate the different between 2 dates. For example, I would like to calculate the different dates between 1st row and 2nd row, 2nd row and 3rd row etc. The dates are from Access database and printed in Detail section. Thank you.
-
Nov 25th, 2006, 12:17 PM
#2
Re: How to refer to previous fields in 2 different row
In Crystal you can access the record before and after the current record using the Previous (it might be just Prev) and Next functions. So in your case create a formula and use the Previous function. Something like
DateDiff(X, {TableName.FieldName}, Previous({TableName.FieldName}))
-
Nov 26th, 2006, 04:49 AM
#3
Thread Starter
New Member
Re: How to refer to previous fields in 2 different row
Thank you Bruce! It works.
Ivan H.
-
Nov 27th, 2006, 03:46 AM
#4
Re: How to refer to previous fields in 2 different row
 Originally Posted by Ivan H.
Thank you Bruce! It works.
Ivan H.
If you Got the solution then go to the thread tool menu and click on the resolved this thread so people know that it is resolved
-
Dec 12th, 2006, 06:43 AM
#5
Addicted Member
Re: How to refer to previous fields in 2 different row
Thanks and Regards,
Muhammad Abbas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|