Solved

Conditional Formatting based on another fields value in a report?

Posted on 2011-02-26
5
214 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 119

Accepted Solution

by:
Rey Obrero 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now