Solved

Conditional Formatting based on another fields value in a report?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

929 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

10 Experts available now in Live!

Get 1:1 Help Now