Repository.Project.SetCurrentProject

Connects to a project associated with the Repository object and sets it as the current (active) project. Returns a Boolean value; when true, indicates a successful connection to that project.

Syntax
.Project.SetCurrentProject(ProjectID)

Parameters
ProjectID
 * Required. Integer. The ID number of the project.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyRepository.Project.SetCurrentProject(1)