ACC: Using the Change Event to Display the Current ValueID: Q114553
|
Moderate: Requires basic macro, coding, and interoperability skills.
To refer to a control's current value during a Change event, use the
control's Text property.
You can use a control's Text property to refer to the control's current
value during a Change event. For example, to display the current value of a
field called txtExample in the title bar while you are typing in a text box
bound to that field, create the following Change event procedure for the
text box:
Sub txtExample_Change ()
Me.Caption = Me!txtExample.Text
End Sub
For more information about the Change event, search the Help Index for
"Change event," or ask the Microsoft Access 97 Office Assistant.
For more information about the OnChange property, search the Help Index for
"OnChange property," or ask the Microsoft Access 97 Office Assistant.
Keywords : FmsEvnt
Version : 2.0 7.0 97
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: April 3, 1999