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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VBA conditional formatting



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2010, 10:36 AM posted to microsoft.public.access
PsyberFox
external usenet poster
 
Posts: 88
Default VBA conditional formatting

Hi there,

I have read up about conditional formatting and understand the *concept*
clearly (I think). However, is it possible to display conditional formatting
of a subform in datasheet view on a form? If so, can someone please help me
with the VBA coding of this, as I need to have more than 3 (or 4 if default
is used) colours?

Thank you!
W
--
The Psyber Fox
http://www.psyberconsulting.co.za
  #2  
Old June 4th, 2010, 10:48 AM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default VBA conditional formatting

If you use VBA code to set the properties of the controls (ForColor etc), it
will affect all rows of the datasheet, so no: that's not possible.

You can use that approach in a report: that's probably your only option if
you need more than 3 formats.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"PsyberFox" wrote in message
...
Hi there,

I have read up about conditional formatting and understand the *concept*
clearly (I think). However, is it possible to display conditional
formatting
of a subform in datasheet view on a form? If so, can someone please help
me
with the VBA coding of this, as I need to have more than 3 (or 4 if
default
is used) colours?



  #3  
Old June 4th, 2010, 12:35 PM posted to microsoft.public.access
PsyberFox
external usenet poster
 
Posts: 88
Default VBA conditional formatting

Thank you for the info...
--
The Psyber Fox
http://www.psyberconsulting.co.za


"Allen Browne" wrote:

If you use VBA code to set the properties of the controls (ForColor etc), it
will affect all rows of the datasheet, so no: that's not possible.

You can use that approach in a report: that's probably your only option if
you need more than 3 formats.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"PsyberFox" wrote in message
...
Hi there,

I have read up about conditional formatting and understand the *concept*
clearly (I think). However, is it possible to display conditional
formatting
of a subform in datasheet view on a form? If so, can someone please help
me
with the VBA coding of this, as I need to have more than 3 (or 4 if
default
is used) colours?



.

 




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 09:33 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.