ACC: Using Code to Set Control's Colors (131886)
The information in this article applies to:
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q131886 SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
This article shows you how to create two user-defined Visual Basic for
Applications Sub procedures that you can use for the Enter and
Exit events of a control to set and reset the ForeColor and BackColor
properties of that control.
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to your version of the
"Building Applications with Microsoft Access" manual.
NOTE: Visual Basic for Applications is called Access Basic in Microsoft
Access version 2.0. For more information about Access Basic, please refer
to the "Building Applications" manual.
CAUTION: Following the steps in this example will modify the sample
database Northwind.mdb (or NWIND.MDB in version 2.0 or earlier). You may
want to back up the Northwind.mdb (or NWIND.MDB) file and perform these
steps on a copy of the database.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbinfo kbProgramming kbusage KB131886 |
---|
|