Multiple records!!!!
Hi everyone,
First of all, thx to all of you out there for providing so much help to other people.
I have been struggling with this problem for the past few days and I don't think I can get it resolved myself. I need some help from you.
I am required to build a report and this is what my report looks like at this point:
ID OrderNum Status
Student1 100 Completed
Student1 200 Processing
Student1 300 Ignore
Student2 100 Completed
Student2 400 Working
Student2 200 NotAvailabe
Student3 600 Processing
Student3 200 Working
Student3 300 Working
Student4 400 Completed
Student4 200 Cancelled
Student4 300 Skip
The new report should look like this:
Student1 200 Processing
Student2 400 Working
Student3 200 Working
Student4 400 Completed
In other words, here are the conditions/requirements for the new report:
1) If a record has status = "Processing" then
display that record(Student1)
2) If a record has status = "Working" then
display the record that record (student2)
3) If a record has status = "Processing" and "Working" then
display either Processing or Working, whatever
has the lowest OrderNum (Student3)
4) If a record is not "Processing" nor "Working" then
display the record that has max OrderNum (Student4)
The hard part is that each student has multiple status on their products....
Any input is greatly appreciated.
Vicki
|