OpenDiagram Method

OpenDiagram Method

See Also                   Applies To

The OpenDiagram method carries out the OpenDiagram action in Visual Basic. For more information on how the action and its arguments work, see the action topic.

Syntax

DoCmd.OpenDiagram diagramname

The OpenDiagram method has the following argument.

Argument Description
datapagename 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.