Set Properties by Using Visual Basic
You can set most properties from Visual Basic code. How you set a property depends on whether you are setting it for a Form , Report , or Control object, an ActiveX Data Object (ADO), or for a Data Access Object (DAO). The following topics outline the steps involved for setting properties of each type of object:
Set Form, Report, and Control Properties in Visual Basic