PC Review


Reply
Thread Tools Rate Thread

Conditional format of a control

 
 
Toller
Guest
Posts: n/a
 
      29th Apr 2010
I have a form that among other things has on it a field called 'EndDate". I
need to add a field that will be conditionally formatted. If the Date is
greater than Enddate, the field is to contain the text "Expired" in red. If
not, the field is to be a blank and transparent. IOW, if the condition is
met, red letters but otherwise, it just disappears.

The field is not in the database. It's for display only.

I've spent 2 hours trying all sorts of things to no avail. How can this be
done?

Thanks.

Eric


 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      29th Apr 2010
On Thu, 29 Apr 2010 14:26:01 -0700, Toller wrote:

> I have a form that among other things has on it a field called 'EndDate". I
> need to add a field that will be conditionally formatted. If the Date is
> greater than Enddate, the field is to contain the text "Expired" in red. If
> not, the field is to be a blank and transparent. IOW, if the condition is
> met, red letters but otherwise, it just disappears.
>
> The field is not in the database. It's for display only.
>
> I've spent 2 hours trying all sorts of things to no avail. How can this be
> done?
>
> Thanks.
>
> Eric


Set the control's control source to
="Expired"
Set it's forecolor to Red.
Click on Format + Conditional Formatting
Set Condition1 to
Expression Is Date()<[EndDate]
Set the Condition's ForeColor to White (or whatever the control's back
color is).
Save the changes.


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Toller
Guest
Posts: n/a
 
      30th Apr 2010
Thanks. Never would have thought of that.

Eric
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional format tab control pages Walter Microsoft Access Form Coding 2 15th Dec 2008 02:44 PM
New Conditional Format Overriding Previous Conditional Format Rene Microsoft Excel Misc 3 27th Feb 2008 06:08 PM
Can two fields control one conditional format in Access? =?Utf-8?B?dGVjaDIzNw==?= Microsoft Access Forms 1 30th Jun 2005 05:50 AM
conditional format based on other control RipperT Microsoft Access Form Coding 4 18th Apr 2005 09:41 AM
Conditional Format, Change Color of Control ?? Gulf Coast Electric Microsoft Access Forms 1 29th Oct 2003 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.