J
JAV
Hello,
I am having a problem constructing the proper clause for querying my
database. I have multiple values used in computing daily averages of
constituent data for measurements. An example of my table for my table
[tbl_data] is shown below;
Constit Value AdjConstitValue UseIterpolated DoNotUse
S1 1300 1258
[x] [ ]
S1 1352
[ ] [ ]
S1 1564
[ ] [x]
etc..
Using an if statement I put together a statement for the query to
display the AdjConstitValue if UseInterpolated is checked and that
works fine. My problem is how to integrate the DoNotUse into the IIF
statement I attempted to use Or in conjunction with another IIF
statement but that was to no avail. What happens is the query returns
all values as being -1? If DoNotUse is checked then the value should
be disregarded in the average calculation. Please give me any input
you may have on this. It is driving me nuts. I can get one or the
other to work but not both at once. Thanks in advance for any
comments.
Jon V
I am having a problem constructing the proper clause for querying my
database. I have multiple values used in computing daily averages of
constituent data for measurements. An example of my table for my table
[tbl_data] is shown below;
Constit Value AdjConstitValue UseIterpolated DoNotUse
S1 1300 1258
[x] [ ]
S1 1352
[ ] [ ]
S1 1564
[ ] [x]
etc..
Using an if statement I put together a statement for the query to
display the AdjConstitValue if UseInterpolated is checked and that
works fine. My problem is how to integrate the DoNotUse into the IIF
statement I attempted to use Or in conjunction with another IIF
statement but that was to no avail. What happens is the query returns
all values as being -1? If DoNotUse is checked then the value should
be disregarded in the average calculation. Please give me any input
you may have on this. It is driving me nuts. I can get one or the
other to work but not both at once. Thanks in advance for any
comments.
Jon V