Method
Database_Class.Connect
Warning
This item was deprecated in version 2019r2. Please use Database.Connect (above)]] as a replacement.
Description
Connects to the database so that you can begin using it. Before proceeding with database operations, test to be sure that Connect returns True.
Notes
Warning
A DatabaseException will be raised if the connection could not be made.
Sample code
This example connects to the database object in the variable db:
Try
db.Connect
MessageBox("Connected!")
Catch error As DatabaseException
MessageBox("Error connecting to the database: " + error.Message)
End Try
Compatibility
All project types on all supported operating systems.