Conditional Format Dates

  • Thread starter Thread starter Andy12
  • Start date Start date
How do I conditionally format dates that are more than one year old?

In form design view, select the date control.
Click on Format + Conditional Formatting.
Set Condition1 to
Expression Is
In the next dialog box, write:
[ControlName]< DateAdd("yyyy",-1,Date())

Change [ControlName] to whatever the actual name of your control is.
 
How do I conditionally format dates that are more than one year old?

Use a crieterion in the conditional format dialog of:

< DateAdd("yyyy", -1, Date())


John W. Vinson [MVP]
 
NOTE: Do not change [ControlName] to the actual name of your control, rather,
change ControlName to the actual name of your control. In other words, do
not drop the brackets!

fredg said:
How do I conditionally format dates that are more than one year old?

In form design view, select the date control.
Click on Format + Conditional Formatting.
Set Condition1 to
Expression Is
In the next dialog box, write:
[ControlName]< DateAdd("yyyy",-1,Date())

Change [ControlName] to whatever the actual name of your control is.
 
Back
Top