J
Jason
I have a table that stores container contents on a daily
basis. The fields of the table are:
ID (autonumber)
Date
Shift (Day or Night)
Container
Material
I would like a query that will tell me how long a
particular container was filled with a particular
material.
For example, if Container 1 contained material A from
4/1 - 4/6, I'd like to see a result of 5 days. The
problem is that a given container might contain material
A for 5 days, then material B for 3 days, then be empty
of 4 days, then contain material A again for another 7
days. I tried using a totals query with a min & max
function, but then the result of the above example is
that container 1 held material A for 12 days, B for 3
days, and empty for 4 days. I want the two separate
instances for material A separated.
Any ideas?
Thanks in advance,
Jason
basis. The fields of the table are:
ID (autonumber)
Date
Shift (Day or Night)
Container
Material
I would like a query that will tell me how long a
particular container was filled with a particular
material.
For example, if Container 1 contained material A from
4/1 - 4/6, I'd like to see a result of 5 days. The
problem is that a given container might contain material
A for 5 days, then material B for 3 days, then be empty
of 4 days, then contain material A again for another 7
days. I tried using a totals query with a min & max
function, but then the result of the above example is
that container 1 held material A for 12 days, B for 3
days, and empty for 4 days. I want the two separate
instances for material A separated.
Any ideas?
Thanks in advance,
Jason