padlocked17
Registered User.
- Local time
- Today, 08:06
- Joined
- Aug 29, 2007
- Messages
- 276
Access Gurus,
I have two tables that contain the data I need.
Tables
Results
Gotchas:
-(Order) is the sequence in which the steps (PRStepID) progress sequentially
End Goal:
Return the (PRStepID) with the Lowest (Order) grouped on the (ReportID) Where the (CompletedDate) Is null.
If the (PRStepsID) with an (Order) of 1,2 & 3 all have (CompletedDate)'s, I would like to return the (PRStepID) for that (ReportID) that has an (Order) of 4.
End Result would look like:
ReportID....... PRStepID
1..................21
2..................20
3..................20
Any help would be greatly appreciated.
I have two tables that contain the data I need.
Tables
Results
Gotchas:
-(Order) is the sequence in which the steps (PRStepID) progress sequentially
End Goal:
Return the (PRStepID) with the Lowest (Order) grouped on the (ReportID) Where the (CompletedDate) Is null.
If the (PRStepsID) with an (Order) of 1,2 & 3 all have (CompletedDate)'s, I would like to return the (PRStepID) for that (ReportID) that has an (Order) of 4.
End Result would look like:
ReportID....... PRStepID
1..................21
2..................20
3..................20
Any help would be greatly appreciated.