VBA conditional formatting

  • Follow


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
0
Reply Utf 6/4/2010 9:36:31 AM

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" <PsyberFox@discussions.microsoft.com> wrote in message 
news:9BDFFD9C-52AB-41AB-B7BE-A54ABE016452@microsoft.com...
> 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?
 

0
Reply Allen 6/4/2010 9:48:07 AM


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" <PsyberFox@discussions.microsoft.com> wrote in message 
> news:9BDFFD9C-52AB-41AB-B7BE-A54ABE016452@microsoft.com...
> > 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?
>  
> 
> .
> 
0
Reply Utf 6/4/2010 11:35:15 AM

2 Replies
865 Views

(page loaded in 0.048 seconds)

Similiar Articles:
















7/19/2012 3:56:16 PM


Reply: