ACC2000: Changing Control Properties Affects All Records in a FormID: Q208961
|
Changing a control's property setting (such as the BackColor property setting) in a continuous form causes all instances of that control in all records to be changed.
If you want to change the control's property for the active control only, use conditional formatting.
To change the color of the active control with conditional formatting, follow these steps:
Microsoft Access stores a single set of property settings for each control
on a form. In order for a control to appear different from record to
record on a form, Microsoft Access would have to store and maintain
property settings for each control for every record in the form.
If a control has approximately 50 property settings, a form with 1000
records would need to maintain 50,000 property settings. Maintaining this
much information for controls would severely impact performance.
Macro Name Action Comment
--------------------------------------------------
On SetValue Change BackColor to Yellow
Off SetValue Change BackColor to White
Highlight Actions
---------------------------------------------
SetValue
Item: [Screen].[ActiveControl].[BackColor]
Expression: 8454143
SetValue
Item: [Screen].[ActiveControl].[BackColor]
Expression: 16777215
OnEnter: Highlight.On
OnExit: Highlight.Off
For more information about the format property, click Microsoft Access Help on the
Help menu, type "Format Property" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: prb
Keywords : kbusage kbdta FmsProp
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999