I have the following table:
ReqStatusID AutoNumber Unique Identifier for table
RequestID Number Unique Identifier for the Request Table
StatusID Number Unique Identifier for the Status Description Table
StatusDte Date/Time Date status added for a request
Detail Text Detail for status added for a request
As a new phase of a process is completed for a particular request, a new record is added to this table. Depending on the number of phases in a process, this table could hold several records for the same RequestID.
I would like a query that will pull the most current phase of a RequestID, with the results listing for each RequestID the Last StatusDte and the related StatusID. Oh, and the Status ID cannot equal 90, 26 or 3.
I tried to accomplish this by pulling RequestID and the MAX of the StatusDte, and the results were one record for each RequestID, but as soon as I add StatusID (with criteria) the query then pulls every record for each RequestID.
I would appreciate any help with this. Thanks.
ReqStatusID AutoNumber Unique Identifier for table
RequestID Number Unique Identifier for the Request Table
StatusID Number Unique Identifier for the Status Description Table
StatusDte Date/Time Date status added for a request
Detail Text Detail for status added for a request
As a new phase of a process is completed for a particular request, a new record is added to this table. Depending on the number of phases in a process, this table could hold several records for the same RequestID.
I would like a query that will pull the most current phase of a RequestID, with the results listing for each RequestID the Last StatusDte and the related StatusID. Oh, and the Status ID cannot equal 90, 26 or 3.
I tried to accomplish this by pulling RequestID and the MAX of the StatusDte, and the results were one record for each RequestID, but as soon as I add StatusID (with criteria) the query then pulls every record for each RequestID.
I would appreciate any help with this. Thanks.