O
Opal
I am trying to create a query in Access 2003 which will show me the
Top
6 parts with downtime for the last 5 times the part has run... the
problem is
not all parts are "run" every day or every week, so I cannot give a
concrete date range for searching and use a between statement. One
part may have run 5 times in the last two weeks, but another may
have taken 2 months to run 5 times.
I have the following data in my table:
DTDate / PartNo / Line / Reason / DTMin
I want to be able to see the Top 6 DTMin by PartNo
going back for the past 5 runs for each part number
but I do not have a record of unique run numbers so
I just need to go back as far as I can by date in order
to get 5 runs for each of my top 6 parts as well as show
the reason for the downtime. Can anyone help
point me in the right direction to achieve this?
Top
6 parts with downtime for the last 5 times the part has run... the
problem is
not all parts are "run" every day or every week, so I cannot give a
concrete date range for searching and use a between statement. One
part may have run 5 times in the last two weeks, but another may
have taken 2 months to run 5 times.
I have the following data in my table:
DTDate / PartNo / Line / Reason / DTMin
I want to be able to see the Top 6 DTMin by PartNo
going back for the past 5 runs for each part number
but I do not have a record of unique run numbers so
I just need to go back as far as I can by date in order
to get 5 runs for each of my top 6 parts as well as show
the reason for the downtime. Can anyone help
point me in the right direction to achieve this?