Indigenous
Technical User
Greetings, I'm trying to render a particular record from a sub report.
This record has to meet these conditions:
1 - starting with the most current record, is it in a box?
if yes, then go to 2
if no, ask the next most current record question 1 again (until it finds one that is in a box so it can ask question 2).
2 - while question 1 is yes, what is the minimum date & time
sample records in the sub-report:
key....date.....time...box
5.......1-1-12...1200...a
7.......1-2-12...1205
11.....1-4-12...0905...a
16.....1-8-12...1005...a
So looking at the records, the data that meets the conditions is from key 11. It wouldn't be the record from key 5 because it came out of the box during key 7.
I got as far as being able to display the records in decending order (inverted order than shown here). After that, I don't have a clue where to start.
Any assistance is greatly appreciated.
This record has to meet these conditions:
1 - starting with the most current record, is it in a box?
if yes, then go to 2
if no, ask the next most current record question 1 again (until it finds one that is in a box so it can ask question 2).
2 - while question 1 is yes, what is the minimum date & time
sample records in the sub-report:
key....date.....time...box
5.......1-1-12...1200...a
7.......1-2-12...1205
11.....1-4-12...0905...a
16.....1-8-12...1005...a
So looking at the records, the data that meets the conditions is from key 11. It wouldn't be the record from key 5 because it came out of the box during key 7.
I got as far as being able to display the records in decending order (inverted order than shown here). After that, I don't have a clue where to start.
Any assistance is greatly appreciated.