Report Data Item - detect Last Record

When inside a data item and looping through the records, is there way to determine if you are on the last record? I have FA Location Table at top level in Report Data Item Fixed Asset is indented The relation between the data items is by FA Location.Code When I am on the last Fixed Asset record I need to set a flag for later processing. Thanks, Harold

Set the flag at a trigger OnPostDataItem in data item Fixed Asset. [;)]

If that’s not the solution you are looking for try : rec2.copy(rec); if = 0 then rec = last rec.