ACC: Changing Control Properties Affects All Records in a FormID: Q119992
|
Moderate: Requires basic macro, coding, and interoperability skills.
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.
You may be able to use the Format property to alter the color of numeric data in a text box based on the data's value (positive, negative, zero, or null), instead of changing the control's property setting.
This behavior is by design.
Microsoft Access stores a single set of property settings for each control
on a form. In order for a control to appear differently 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 Description
--------------------------------------------------
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 using color in the Format property, search the Help Index for "Format Property," or ask the Microsoft Access 97 Office Assistant.
Keywords : kbusage FmsProp
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 6, 1999