Workspaces Method

Provides access to the Workspaces collection of the DBEngine object.

Applies to objects: DBEngine.

Syntax

[[Set] workspacesRet = ] object.Workspaces()

The Workspaces method syntax has these parts:

Part Description
object Required. An instance of the DBEngine object.
workspacesRet Optional. A Workspaces type variable.

Example

 ' Declaring and initializing variables
Dim engine As dbEngine Set engine = new dbEngine Dim wspace As Workspace Set wspace = engine.CreateWorkspace("MyWorkspace") '... ' Get the Workspace object collection Dim wscoll As Workspaces Set wscoll = engine.Workspaces() '...

 

See Also

DBEngine Object, Workspaces Object