on 08-25-2011 12:14 AM
I know how to access the previous record, but I need to do some evaluation based on the previous previous record.
This is the scenario:
I need to write a header for the second record within each date if the specific condition has met.
Any advice would be greatly appreciated....thanks
I tried something like this but it didn't work
Previous(Previous({storeprocedure;1.field}))
As Debi says I dont think its possible, I tried to think of some logic using Variables but it was beyound me.
I see you are using a Stored Procedure, I would therefore suggeste that you add a Previous to each record in there. Then in Crystal you can use Previous() to look at that new field effectively giving you what you want.
In Oravle the LAG function will do what you want, not sure how you do it in SQL Server.
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think you can do that... I have not seen a function to get a previous previous record. I tried doing a previous on a formula containing a previous and that did not work either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.