Password protect a database using ADO

From: John (anonymous_at_discussions.microsoft.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 14:01:13 -0800

Is there a way to programatically set the password of an Access database? I am using some VB and some C++ as a front end with an Access.mdb as a backend and I connect to the database using ADO. The user can point to any number of databases that the program opens up and allows the user to modify. What I want to do is modify the database and set a password if it doesn't already have a password on it.