O
Opal
I have a query I am trying to create based on another query
(inventory) and a table. The inventory query shows the date, shift,
Die set and the # of shifts remaining for each die set in inventory.
The table has a corresponding date and shift field as well as two more
fields that tell me what die set was left in the line at the end of
the previous shift and what die set is staged to go in next (again
left from the previous shift). When the inventory query is run it
tells me what die set has the lowest inventory to the highest.
However, the die set with the lowest inventory may not be the one
already in line or the one staged to go in line next. I need to be
able to sort the new query so that the die set in line and the die set
staged to go next are 1st and second in the query followed by the
remaining die sets in ascending order. I'm thinking that I should set
criteria based on an IIF statement, but I'm not sure where to begin.
Can anyone provide some advice?
(inventory) and a table. The inventory query shows the date, shift,
Die set and the # of shifts remaining for each die set in inventory.
The table has a corresponding date and shift field as well as two more
fields that tell me what die set was left in the line at the end of
the previous shift and what die set is staged to go in next (again
left from the previous shift). When the inventory query is run it
tells me what die set has the lowest inventory to the highest.
However, the die set with the lowest inventory may not be the one
already in line or the one staged to go in line next. I need to be
able to sort the new query so that the die set in line and the die set
staged to go next are 1st and second in the query followed by the
remaining die sets in ascending order. I'm thinking that I should set
criteria based on an IIF statement, but I'm not sure where to begin.
Can anyone provide some advice?