S
Shane Garlick
I'm trying to access the data found in a MS Project database using an MS Access database (there seems to be a lot of interest for this). This can be done using ADO OLE DB. To use this, you need a provider for the data source. I believe the provider for Project is Microsoft.Project.OLEDB.10.0. However, I'm not familiar with the syntax used. What I have is
Dim cnDB As ADODB.Connectio
Function OpenProject(
Set cnDB = CreateObject("ADODB.Connection"
cnDB.ConnectionString = "Provider = Microsoft.Project.OLEDB.10.0;"
& "Data Source = C:\ProjectFile.mpp
cnDB.Ope
End Functio
The problem: when I run this script, the error says it can't find the file, even though the file is there. I know that the provider is available because; 1) it gets loaded when Project is loaded and 2) it's in the list
Am I writing the script correctly? Is there a source to help someone with ADO scripting
Thx
Dim cnDB As ADODB.Connectio
Function OpenProject(
Set cnDB = CreateObject("ADODB.Connection"
cnDB.ConnectionString = "Provider = Microsoft.Project.OLEDB.10.0;"
& "Data Source = C:\ProjectFile.mpp
cnDB.Ope
End Functio
The problem: when I run this script, the error says it can't find the file, even though the file is there. I know that the provider is available because; 1) it gets loaded when Project is loaded and 2) it's in the list
Am I writing the script correctly? Is there a source to help someone with ADO scripting
Thx