A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Format Dates



 
 
Thread Tools Display Modes
  #1  
Old January 17th, 2008, 04:12 PM posted to microsoft.public.access.forms
Andy12
external usenet poster
 
Posts: 3
Default Conditional Format Dates

How do I conditionally format dates that are more than one year old?
--
-Andy
  #2  
Old January 17th, 2008, 05:22 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Conditional Format Dates

On Thu, 17 Jan 2008 08:12:06 -0800, Andy12 wrote:

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.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old January 17th, 2008, 05:29 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Conditional Format Dates

On Thu, 17 Jan 2008 08:12:06 -0800, Andy12 wrote:

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]
  #4  
Old January 17th, 2008, 05:30 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Conditional Format Dates

Andy,
FieldValue Less Than DateAdd("yyyy",-1,Date())
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Andy12" wrote in message
...
How do I conditionally format dates that are more than one year old?
--
-Andy



  #5  
Old February 9th, 2010, 05:28 PM posted to microsoft.public.access.forms
oldblindpew
external usenet poster
 
Posts: 128
Default Conditional Format Dates

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" wrote:

On Thu, 17 Jan 2008 08:12:06 -0800, Andy12 wrote:

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.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.