Solved

Change font color

Posted on 2011-02-11
5
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

749 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