On 9 Jul 2006 19:17:45 -0700,
bi*****@gmail.com wrote:
My dilemma is this:
I have to run an access report that makes certain customer records
easily viewable in a daily report that is to be run. Is it possible to
conditionally shade just the background for certain individual
customers (lets say possibly a dozen different customers which may vary
daily), leaving the remaining report unshaded? The only shading info I
can find is the "every other line" shading which won't help me. I was
trying to look into conditional formatting, but so far have been
unsuccessful.
Any help would be so appreciated.
Thanks
Alex
Not really enough information here.
How do we know which customers you wish to change the color for?
By Name? By some other condition? Do you wish to change just the one
control color, i.e. the CustomerName? Or the color of the entire
detail section for that customer?
For instance, if you wish to change the entire backcolor of the detail
section, you can code the Detail Format event:
If [CustomerName] = "Smith" Or [CustomerName] = "Jones" Then
Me.Section(0).BackColor = vbYellow
Else
Me.Section(0).BackColor = vbWhite
End If
You'll probably want to have the BackStyle of each control in the
section is set to Transparent.
Conditional Formatting will work quite well to change the forecolor of
the controls.
Set the Condition1 to
Expression Is
Write
[CustomerName] = "Jones" Or [CustomerName] = "Smith"
as the condition.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail