ACC97: Report Auto List Members Shows Generic Ctrl Object ListID: Q160823
|
Moderate: Requires basic macro, coding, and interoperability skills.
The Auto List Members feature in Microsoft Access 97 helps you type Visual
Basic for Applications code by displaying a list of an object's properties
and methods as you type.
However, when you type the name of a report control in the class module of
a report, the Auto List Members box displays a generic list of methods and
properties instead of those specific to that type of control. When you
type the name of a form control in the class module of a form, the Auto
List Members box displays a specific list of methods and properties for
that type of control.
Report controls display a generic list of methods and properties because they do not support the same methods and properties as their counterparts on a form. For example, you cannot use the standard methods of a text box, label, or object frame control in a report the same way you can on a form because a report control does not trigger events.
If you want to see a specific list of methods and properties for a control
on a report, you must explicitly declare the control object. For example,
if your report has a text box control called Text0, then the following line
of code displays a generic list of methods and properties in the Auto List
Members box:
Me!Text0.
Dim x as TextBox
Set x = Me!Text0
x.
Sub AutoMem()
Me!EmployeeId.
Sub AutoMem()
Me!ProductID.
Sub AutoMem()
Dim x as TextBox
Set x = Me!ProductID
x.
For more information about Auto List Members, search on the phrase "Auto List Members option (Module window)," using the Microsoft Access 97 Help Index.
Keywords : MdlOthr
Version : 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 3, 1999