Open Database from another database

musclecarlover07

Registered User.
Local time
Yesterday, 17:01
Joined
May 4, 2012
Messages
236
I want to open a db from another db.
I have compile many different variations:
Code:
Application.OpenAccessProject "Folder\Folder1\Folder2\Record Management.accdb"
I have done Application.Follow Hyperlink none of this works. If I put OpenAccesProject then it says the file is already open but its not. I can only think it would say that is because the tables are linked.
If I take the Record Management.accdb off it goes to the folder.

For certain reasons I have changed the name of the actual path to just folders. THe file name is the same.
 
I want to beable to get in it to edit records. Majority of the things we do we don't edit. But if we do need to edit it then thats what the record management is used for. It so people don't actually delete something while they work. Most people wont go into it but it would be easier just to click the button.
 
Like I said it will go to the folder if I leave the record management.accdb off. but when I add that it says its open or if i use the other method it says it cant find the location
 
Like I said it will go to the folder if I leave the record management.accdb off. but when I add that it says its open or if i use the other method it says it cant find the location

You can then try this instead:

Code:
Dim accApp As Access.Application
 
Set accApp = New Access Application
 
With accApp
    .Visible = True
    .OpenCurrentDatabase("Folder\Folder1\Folder2\Record Management.accdb")
    .UserControl = True
End With
 

Users who are viewing this thread

Back
Top Bottom