Set Data Access Page Properties in Visual Basic

Microsoft Access Visual Basic

Show All

Set Data Access Page Properties in Visual Basic

   

DataAccessPage objects are Microsoft Access objects. You can set properties for these objects from within a Sub, Function, or event procedure.

To set a property of a data access page

Refer to the individual data access page within the DataAccessPages collection, followed by the name of the property and its value. For example, to set the Visible property of the Customers data access page to True (–1), use the following line of code:

DataAccessPages!Customers.Visible = True

Notes

  • For each property you want to set, you can look up the property in the Help index to find information about:
    • Whether you can set the property from Visual Basic.
    • Which values you should use to set the property. You often use different settings when you set a property in Visual Basic instead of in the property sheet. For example, if the property settings are selections from a list, you must use the value or numeric equivalent for each selection.