Open the database with the ShellExecute command--all you have to do is pass in the database path and filename and it will open the second database for you in a new window.
If you use Access/JET security, ShellExecute to the shortcut to the database, if that makes any sense to you.
I have used this method to launch an Access Project.
Public pubAppAccess As Access.Application
Public pubFilePath As String
Public pubStartWindow As String, pubObj As Object
' Open Access project.
pubFilePath = "Crojects\remotepubs.adp"
Set pubAppAccess = New Access.Application
pubAppAccess.OpenAccessProject pubFilePath
is there anyway you can lauch another app without the complete path like :
pubFilePath = "Crojects\remotepubs.adp"
I wan't the filename to be dynamic just incase the file moves anywhere. Are there any wildcards that will allow it to just start in the current directory ?? so i can just list the file name
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.