Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
But again I ask - was it from Access that you were getting the data for Crystal? If so, and you were just using the table then you were at high risk of it not returning the proper information because Access does not store data in the tables in a first in, first out type of format. You have to apply an EXPLICIT order to it via a QUERY in order to guarantee that order (and you have to either use a date/time stamp or some other numbering method - and autonumber is NOT a good way to number them either as that isn't necessarily going to be sequential).Yes, crystal does have the ability to look at the "previous record" and perform and action.
SELECT Job_Operation.Status, Job_Operation.Inside_Oper, FieldX, FieldY
FROM Job_Operation
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
'Dim a static variable so that it keeps its value between calls. It will be a zero-length string for the first record displayed in the report.
Static PrevValue As String
'Do whatever you want with that value. I just displayed it in an unbound textbox in the Detail section, but almost anything is possible.
Me.txtTest = PrevValue
'Store the current value in the variable so that next time a detail prints, this value is remembered.
PrevValue = Me.NameOfTheBoxContainingTheValue
'Good Luck
End Sub