Open2
Previous Top Next

Opens a connection to the specified encrypted database file.
The file will be created if it does not exist. In that case an encrypted database will be created.
Use ChangePassword to encrypt an existing database.
Syntax: Open2(ConnectionString As String, Password As String)
ConnectionString - Must be of the following syntax: Data Source = yourfile.
Password - The database password.
Example:
Con.Open2("Data Source = " & AppPath & "\Northwind.sl3", "MyPassword")