action in Visual Basic.
expression.OpenDiagram(DiagramName)
expression Required. An expression that returns a DoCmd object.
DiagramName Required Variant. A string expression that's the valid name of a database diagram in the current database. If you execute Visual Basic code containing the OpenDiagram method in a library database, Microsoft Access looks for the database diagram with this name first in the library database, then in the current database.
Example
The following example opens the database diagram named "Data Model".
DoCmd.OpenDiagram " Data Model"