Solved

Conditional Formatting based on another fields value in a report?

Posted on 2011-02-26
5
247 Views
Last Modified: 2012-05-11
Hi all,

How would I say if the field "type" is equal to positive then the back colour of the text field "text1" is green and if the "type" field is equal to negative then the text field "text1" should have a back colour of red and a font colour of white?

Thanks

Chris
0
Comment
Question by:smods
  • 3
5 Comments
 
LVL 6

Expert Comment

by:AkAlan
ID: 34989466
Have you tried using the built in Conditional Formatting feature of Access?
Which version of acces are you using?
0
 

Author Comment

by:smods
ID: 34989486
2003.  I am using that on other fields but there doesn't seem to be the option to base the formatting on a different field??
0
 
LVL 6

Expert Comment

by:AkAlan
ID: 34989493
You need to use an expression when you go into Conditional Formatting the drop down "Field Value Is " select "Expression Is" then use the wizard. It will help a lot.
0
 
LVL 6

Expert Comment

by:AkAlan
ID: 34989518
I'm going to leave work soon so if you need an example let me know.
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 34989563
in the design view of the report, select text1, then
Format > conditional formatting, and set as shown

 x
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question