How to programmatically apply conditional formatting settings to all form controls (304104)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article was previously published under Q304104 Advanced: Requires expert coding, interoperability, and multiuser
skills.
This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp).
SUMMARY In Microsoft Access 2000, conditional formatting was added
to forms and reports to allow users to format a control based on a particular
condition. However, in the Access user interface, you cannot automatically
propagate the conditional formatting of one control to all other controls on
the form. But you can do this by using the FormatConditions collection of the control on which the initial conditional format
has been set. This article shows you how to use code to propagate the
conditional formatting of one control to all other controls on the form.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbProgramming KbVBA kbinfo kbhowto KB304104 |
---|
|