You can use the SubdatasheetExpanded property to specify or determine the saved state of all subdatasheets within a table or query. Read/write Boolean.
expression.SubdatasheetExpanded
expression Required. An expression that returns one of the objects in the Applies To list.
The SubdatasheetExpanded property applies only to tables and queries within a Microsoft Access database (.mdb).
The SubdatasheetExpanded property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True | The saved state of all subdatasheets in the table is expanded. |
No | False | (Default) The saved state of all subdatasheets in the table is closed. |
To set the SubdatasheetExpanded property by using Visual Basic, you must first either:
The value of the SubdatasheetExpanded property is displayed in the Table Properties property sheet.
The SubdatasheetExpanded and SubdatasheetHeight properties take effect on the subform control when the form is in datasheet view.