PC Review


Reply
Thread Tools Rate Thread

Changing Font colour for one Record only

 
 
=?Utf-8?B?TXVycmF5?=
Guest
Posts: n/a
 
      23rd Mar 2007
Hi all
I have a table that includes an ID, a description and a check box. If I
check the test box it should make the description change colour.
Unfortunately the code I tried changes all the following records as well.
The code I tried was on the checkbox double click event and went something
like this:

if checkbox = true then
Me.description.forecolor = RGB (255, 0,0)
else
Me.description.forecolor = RGB (0,0,0)
end if

If I use this it changes the Font colour of the record and all the following
records to red, but I only want the single record to change colour.
Thanks in advance
Murray


 
Reply With Quote
 
 
 
 
tina
Guest
Posts: n/a
 
      23rd Mar 2007
bind your table to a *form*, and take a look at the Conditional Formatting
option on the menu bar in form Design view; i think it's on the Format menu.

hth


"Murray" <(E-Mail Removed)> wrote in message
news:6C081D50-3DE3-4F1B-BFB7-(E-Mail Removed)...
> Hi all
> I have a table that includes an ID, a description and a check box. If I
> check the test box it should make the description change colour.
> Unfortunately the code I tried changes all the following records as well.
> The code I tried was on the checkbox double click event and went something
> like this:
>
> if checkbox = true then
> Me.description.forecolor = RGB (255, 0,0)
> else
> Me.description.forecolor = RGB (0,0,0)
> end if
>
> If I use this it changes the Font colour of the record and all the

following
> records to red, but I only want the single record to change colour.
> Thanks in advance
> Murray
>
>



 
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
changing of font colour Subhankar Microsoft Word Document Management 1 28th Jan 2009 02:35 PM
Font Changing Colour on Its Own?!? WinkinVan Microsoft Word Document Management 3 23rd Mar 2008 09:48 PM
Changing Font Colour mlv Microsoft Excel Discussion 9 26th Oct 2007 02:39 PM
changing font colour =?Utf-8?B?Sm9jaw==?= Microsoft Excel Programming 10 18th Jun 2007 02:15 PM
Changing Font Colour =?Utf-8?B?TWVsYmE=?= Microsoft Access Form Coding 5 12th Feb 2007 03:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.