References the active control on an object. Not available at design time; read-only at run time.
Syntax
Object.ActiveControl.Property[ = Value]
Settings
Property
The property to return or set.
Value
The current or new property value.
Remarks
This property is not available if all controls on the specified object are invisible or disabled.
If the object is active, the ActiveControl property references the control that has the focus. If the object is not active, an error occurs.