A family of Microsoft relational database management systems designed for ease of use.
You never answered my question: Are you trying to open the database in a second instance of the Access application, or are you just trying to read data from it?
If you want to open it in a second instance of Access, you could do something like this:
Dim oAccess As Access.Application
Set oAccess = New Access.Application
oAccess.OpenCurrentDatabase "YourPath\To\OtherDatabase.accdr", False, "ThePassword"
oAccess.Visible = True
oAccess.UserControl = True
Set oAccess = Nothing
That is untested code, but something like it might work.
Hi dear
1- I built a accdb file and another protected accdr file with database password
I want to have a button on a form in the accdb file when I press it ,it open that accdr file (No only read from it )
2- OpenCurrentDatabase method can't open accdr file format.
Hi dear
when it has a database password ?