T
Thomas Campitelli
Howdy Folks,
I would like to shade some records in an Access report based on whether
the value for a given record is above a certain level. That's the basic
concern, but let me provide some more details.
My report is a summary of analytical chemistry data for groundwater. I
want to compare the results for various wells against governmental
groundwater standards. The format of the report is shown below:
Chemical Name Standard Result 1 Result 2 Result 3
Benzene 5 1,000 1,500 1,450
Arsenic 3 <5 4 J 6
And so on. Here's where things get tricky. My results are text values.
They have commas and less than signs in them, some of the data also
include alphabetical qualifiers (such as "J" above). Is there a way to
compare these text results to the relevant standard and shade them if
they exceed the standard?
I tried conditional formatting. I set the first condition to ignore
anything with a less than sign. Those indicate non-detections. I then
tried something like the following expression for the second condition.
Val([Result 1]) > Val([Standard])
If that condition was met, I wanted to shade the record gray. The
problem is that nothing happened. Nothing gets shaded. I don't think
Access is able to convert these text values to numbers and compare them.
I might be able to go back to my source tables and queries and compare
the numerical values to the standards and put an asterisk or some other
symbol in the result field to denote an exceedance of a standard, but
then I will have an asterisk next to all the exceedances in addition to
shading the value gray.
Does anyone have any ideas? I would be happy to provide more details,
but this post is already rather long. Thank you in advance for any help.
Sincerely,
Tom
I would like to shade some records in an Access report based on whether
the value for a given record is above a certain level. That's the basic
concern, but let me provide some more details.
My report is a summary of analytical chemistry data for groundwater. I
want to compare the results for various wells against governmental
groundwater standards. The format of the report is shown below:
Chemical Name Standard Result 1 Result 2 Result 3
Benzene 5 1,000 1,500 1,450
Arsenic 3 <5 4 J 6
And so on. Here's where things get tricky. My results are text values.
They have commas and less than signs in them, some of the data also
include alphabetical qualifiers (such as "J" above). Is there a way to
compare these text results to the relevant standard and shade them if
they exceed the standard?
I tried conditional formatting. I set the first condition to ignore
anything with a less than sign. Those indicate non-detections. I then
tried something like the following expression for the second condition.
Val([Result 1]) > Val([Standard])
If that condition was met, I wanted to shade the record gray. The
problem is that nothing happened. Nothing gets shaded. I don't think
Access is able to convert these text values to numbers and compare them.
I might be able to go back to my source tables and queries and compare
the numerical values to the standards and put an asterisk or some other
symbol in the result field to denote an exceedance of a standard, but
then I will have an asterisk next to all the exceedances in addition to
shading the value gray.
Does anyone have any ideas? I would be happy to provide more details,
but this post is already rather long. Thank you in advance for any help.
Sincerely,
Tom