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 Formatting



 
 
Thread Tools Display Modes
  #1  
Old January 15th, 2008, 12:36 AM posted to microsoft.public.access.forms
Rose
external usenet poster
 
Posts: 262
Default Conditional Formatting

Is there a way to have conditional formatting on a date in a field if it is
past NOW(). For example if the date in the field is 12/15/2007 and todays
date is 01/15/2007, I would like it to turn blue or something that says the
date is past. Any ideas?
--
Rose
  #2  
Old January 15th, 2008, 12:40 AM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Conditional Formatting

Rose

Have you looked into using the Conditional Formatting feature when your form
is in design view?

By the way, "Now()" returns both date AND time. "01/15/2007" is, possibly,
a date, if the field it's in is a date/time field.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Rose" wrote in message
...
Is there a way to have conditional formatting on a date in a field if it
is
past NOW(). For example if the date in the field is 12/15/2007 and todays
date is 01/15/2007, I would like it to turn blue or something that says
the
date is past. Any ideas?
--
Rose



  #3  
Old January 15th, 2008, 01:51 AM posted to microsoft.public.access.forms
Rose
external usenet poster
 
Posts: 262
Default Conditional Formatting

Hi Jeff,

I tried conditional formatting but could not figure out how to have it
format based on the current date rather then one input. Any ideas?
--
Rose


"Jeff Boyce" wrote:

Rose

Have you looked into using the Conditional Formatting feature when your form
is in design view?

By the way, "Now()" returns both date AND time. "01/15/2007" is, possibly,
a date, if the field it's in is a date/time field.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Rose" wrote in message
...
Is there a way to have conditional formatting on a date in a field if it
is
past NOW(). For example if the date in the field is 12/15/2007 and todays
date is 01/15/2007, I would like it to turn blue or something that says
the
date is past. Any ideas?
--
Rose




  #4  
Old January 15th, 2008, 04:07 AM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Conditional Formatting

Rose,

In the Conditional Formatting dialog, select the 'Expression is...'
option, and enter something the equivalent of this:
[NameOfYourDateField]Date()

--
Steve Schapel, Microsoft Access MVP

Rose wrote:
Hi Jeff,

I tried conditional formatting but could not figure out how to have it
format based on the current date rather then one input. Any ideas?

  #5  
Old January 15th, 2008, 04:09 AM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Conditional Formatting

I'm a little confused! You say

"For example if the date in the field is 12/15/2007 and todays date is
01/15/2007, I would like it to turn blue or something that says the
date is past."

Did you mean to say "and today's date is 1/15/2008" instead? This would make
12/15/2007 "past due."

Select your date field textbox, goto Format - Conditional Format, under

Condition1 choose Expression Is

then in the next box enter [YourDateField] Date()

Now format the field as you like it for when the date field is in the past.

If I've misinterpreted your need, reverse the condition to read

[YourDateField] Date()

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com

 




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 03:42 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.