Select the product you need help with
ACC2000: How to Use VBA to Set Default Control PropertiesArticle ID: 200593 - View products that this article applies to. This article was previously published under Q200593 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
This article shows you how to use Visual Basic for Applications to set
properties for default controls on forms and reports.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
In order to set properties for default controls, you must use the form's
DefaultControl method. Note that, although you can use this method to set properties for default controls, not all of a control's properties are available as default properties.
The following properties apply only to default controls and cannot be set for a control that's already on the form or report:
REFERENCESFor more information about using Visual Basic for Applications to set the properties of default controls, click Microsoft Access Help on the
Help menu, type DefaultControl method in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned. PropertiesArticle ID: 200593 - Last Review: October 11, 2006 - Revision: 3.2
|


Back to the top








