G
Guest
I want to refer to a form control's property (in Access 2003 VBA) such as
Enabled or ControlType. I enter the code and it works fine, but I have to
know Access will accept them - I'm not prompted by Access with the available
options as is usually the case. For example:
Dim ctl AS ctl
For Each ctl in Me.Controls
ctl.Enabled = True
Next
When typing the third line, I would expect to be prompted after entering "."
with all available options but I don't - I get some. Certainly I don't get
Enabled or ControlType. I would like to know why they don't appear in the
menu of options. Do I need to reference some other Object Library (I
currently have references to the Office 11.0, Access 11.0, DAO 3.6, ActiveX
Data, OLE Automation and VBA object libraries)? Your advice will be
appreciated.
Don
Enabled or ControlType. I enter the code and it works fine, but I have to
know Access will accept them - I'm not prompted by Access with the available
options as is usually the case. For example:
Dim ctl AS ctl
For Each ctl in Me.Controls
ctl.Enabled = True
Next
When typing the third line, I would expect to be prompted after entering "."
with all available options but I don't - I get some. Certainly I don't get
Enabled or ControlType. I would like to know why they don't appear in the
menu of options. Do I need to reference some other Object Library (I
currently have references to the Office 11.0, Access 11.0, DAO 3.6, ActiveX
Data, OLE Automation and VBA object libraries)? Your advice will be
appreciated.
Don