OpenDatabase()

Syntax

Result = OpenDatabase(#Database, ODBCDatabaseName$, User$, Password$)

Description

Open the specified ODBC database and set it as the current one. All further operations will be done on this new opened database. To change the current database, simply use the UseDatabase() command. If the Result is 0, the database can't be found or the user/password is incorrect. The Password$ can be a null string if no password are requiered. To declare an ODBC database, read the ODBC help document of Windows. If another database was previously opened with the same #Database number, then the previous database is automatically closed.

Supported OS

Windows

Database - Index