Solved

Change font color

Posted on 2011-02-11
5
329 Views
Last Modified: 2012-05-11
Hello, newbie to MS Access.  Trying to figure out how to when I run a report to have the dates on my report that are 30 days or older from the current date to be color font red and bold, If within 1-30  days the font is yellow and bold, else nothing.
0
Comment
Question by:sandramac
  • 3
  • 2
5 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 34874140
use conditional formatting, select the controls click Format> conditional formatting

use

expression is DateDiff("d",[txtDate],Date())<=30
          yellow

expression is DateDiff("d",[txtDate],Date()) > 30
       red

0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34874151
or

use

expression is DateDiff("d",[txtDate],Date()) between 1 and 30
          yellow

expression is DateDiff("d",[txtDate],Date()) > 30
       red

0
 

Author Comment

by:sandramac
ID: 34874449
Hello i inputted the expressions but still no color change on the reports
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34874479
can you post the expression that you used. better if you can upload your db
0
 

Author Comment

by:sandramac
ID: 34874546
Okay i got it to work, but the cell will only format when i click on the value on the report when i click on a different date
access.jpg
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

863 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