ACC2000: How to Simulate Control Arrays in Visual Basic for Applications (210232)
The information in this article applies to:
This article was previously published under Q210232 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
This article shows you how to simulate an array of controls on a form or
report similar to the indexed control array functionality in Microsoft
Visual Basic. Control arrays are not directly supported in Visual Basic for
Applications, but you can create similar functionality by:
- Including a number suffix in the name of your controls.
- Setting a string variable to the name of the control.
- Using the variable name when referencing the controls.
REFERENCESFor more information about working with arrays, click Microsoft Visual Basic Help on the
Help menu, type using arrays in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbinfo kbProgramming kbusage KB210232 |
---|
|