ACC: Change Active Control Background Color with Timer EventLast reviewed: August 28, 1997Article ID: Q141535 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This articles demonstrates a method that you can use to change the background color of the active control on a form. This method will change the control's background color as long as the control supports the BackColor property. 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.
MORE INFORMATIONTo create the method that changes the background color of the active control on a form, follow these steps. CAUTION: Following the steps in this example will modify the sample database Northwind.mdb (or NWIND.MDB in version 2.0). You may want to back up the Northwind.mdb (or NWIND.MDB) or perform these steps on a copy of the Northwind database.
REFERENCESFor more information about this topic, search for "backcolor," and then "Change the background color of a control or section" using the Microsoft Access 97 Help Index. NOTE: The TimerInterval property uses milliseconds (1000 = One second). Smaller numbers produce quicker responses. You may have to experiment with the numbers to achieve the desired effect. Keywords : kbusage PgmObj Version : 2.0 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |