Hi there
I'm following the code that appears in a number of posts about how to open one database from another database. I'm using the following code:
The line from appAccess.OpenCurrent Database appears red and if I try to compile the database I get a message 'Compile error: Syntax error' athe line appAccess.OpenCurrentDatabase "S:\2336....etc.
The drive and path name are correct as I have copied them from the folder.
Is anyone able to suggest what I am doing wrong.
Thanks in advance for any help.
datafiend
I'm following the code that appears in a number of posts about how to open one database from another database. I'm using the following code:
Code:
Private Sub Command0_Click()
Dim appAccess As Access.Application ' Create instance of Access Application object.
Set appAccess = CreateObject("Access.Application")
' Open MyDatabaseName.mdb database in Microsoft Access window.
appAccess.OpenCurrentDatabase “S:\2336-PPR Apps\Data Access\Self Managed Teams\AT\Public Register & Gazettals.accdb", False
.....
The line from appAccess.OpenCurrent Database appears red and if I try to compile the database I get a message 'Compile error: Syntax error' athe line appAccess.OpenCurrentDatabase "S:\2336....etc.
The drive and path name are correct as I have copied them from the folder.
Is anyone able to suggest what I am doing wrong.
Thanks in advance for any help.
datafiend