PDA

Click to See Complete Forum and Search --> : Changing color for single control on subform; MS Access 2000


Tigger2
Sep 3rd, 1999, 05:16 AM
MS Access 2000 lets you set the color/format of a control on a form based on an event (such as "on focus"). Is there a way I can get ahold of this functionality with an API call? I am wanting to set the background color of a text box control on a subform when the subform/control does not have focus, to serve as a visual by highlighting important information (on only one of the continuous subforms displayed) while the user types in data elsewhere. Thanks in advance!

JHausmann
Sep 5th, 1999, 11:14 AM
You could set the backColor property (and/or font properties) of a text box on the "lost focus" event to one value and to something else on the "got focus" event.