Repository.ConnectToAccessRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:
    
    
  {{APIComment|'Connect to the Synthesis repository.}}
  {{APIComment|'Connect to the Synthesis repository.}}
   Dim Success As Boolean = False
   Dim Success As Boolean  
   Success = MyRepository.ConnectToAccessRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr9")
   Success = MyRepository.ConnectToAccessRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr10")

Revision as of 17:17, 20 May 2015


Connects to an MS Access repository.

Syntax

  • ConnectToAccessRepository(ByVal FileName As String) As Boolean

Parameters

FileName: The path to the Synthesis repository you will connect to.

Returns True if successful, otherwise returns False.

Usage Example

 'Declare a new repository connection object. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean 
 Success = MyRepository.ConnectToAccessRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr10")