T
tobesus
Hi. I'm still learning Access and this is the toughest problem I've faced yet.
Will try to be as clear as possible.
I have a table (YrOpTEMPS) consisting of the fields: DateTime and OpTEMP
The data are operating temperatures (OpTEMP) of a machine sampled every 2
minutes over a year. I am trying to analyze how much time this machine has
spent operating at a given target temperature (and target temp - 1 degree,
target-2 degrees, etc) during this year.
Thus I would like my final data to be COUNTS of OpTEMPs at the target temp,
the target temp minus 1 degree, the target temp -2 degrees, etc. for the
entire year.
My problem is that this target temperature is different for EACH DAY of the
year!
Target temps come from another table with a field (TargTEMP) listing one
target temp for each DAY (ie: there is only one row per DAY in this table,
NOT one row per sample like in the master table).
Somehow I need to develop a query (or queries) that will take the TargTemp
for each day and use it to interrogate ALL the samples (OpTEMP) for that
particular day, COUNT how many fall within the target temp, target temp minus
1 degree, minus 2, etc. and then give me those counts for the entire year.
To clarify, the counts need to be done on a daily basis (since target temp
varies daily), but only the summed counts for the year are of interest to me.
If anyone has any advice on this one I would be very grateful. Just
formulating this question has taxed every brain cell I have to the point of
exhaustion. Thanks in advance.
Will try to be as clear as possible.
I have a table (YrOpTEMPS) consisting of the fields: DateTime and OpTEMP
The data are operating temperatures (OpTEMP) of a machine sampled every 2
minutes over a year. I am trying to analyze how much time this machine has
spent operating at a given target temperature (and target temp - 1 degree,
target-2 degrees, etc) during this year.
Thus I would like my final data to be COUNTS of OpTEMPs at the target temp,
the target temp minus 1 degree, the target temp -2 degrees, etc. for the
entire year.
My problem is that this target temperature is different for EACH DAY of the
year!
Target temps come from another table with a field (TargTEMP) listing one
target temp for each DAY (ie: there is only one row per DAY in this table,
NOT one row per sample like in the master table).
Somehow I need to develop a query (or queries) that will take the TargTemp
for each day and use it to interrogate ALL the samples (OpTEMP) for that
particular day, COUNT how many fall within the target temp, target temp minus
1 degree, minus 2, etc. and then give me those counts for the entire year.
To clarify, the counts need to be done on a daily basis (since target temp
varies daily), but only the summed counts for the year are of interest to me.
If anyone has any advice on this one I would be very grateful. Just
formulating this question has taxed every brain cell I have to the point of
exhaustion. Thanks in advance.