Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create MDB with password

Status
Not open for further replies.

xtharmon

Programmer
Jan 23, 2003
6
US
How do I create the database with a password? Currently this is what I am doing.

szAttributes2 = "CREATE_DB="ls_mdb

retcode = SQLConfigDataSource(hWnd, ODBC_CONFIG_SYS_DSN, szDriver, szAttributes2)
 
Try something like this :

Set dbBackend = CreateDatabase(BackendFileName, dbLangGeneral)
dbBackend.NewPassword "", "password"
dbBackend.Close


"In three words I can sum up everything I've learned about life: it goes on."
- Robert Frost 1874-1963
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top