Solved

Unable to read mpp file using ACCESS VBA

Posted on 2009-05-18
3
615 Views
Last Modified: 2013-11-28
HI,
I had written a code using MSProject OLEDB.11.0. The code works fine for MS Project 2003. I am able to successfully read mpp files. But when I try using the code in MS Project 2007, I get the following error:
'Provider cannot be found. It may not be properly installed'
I googled and found that I could use OLEDB 12.0 and had to install the latest connectivity driver. Which I did and I stil  get the error.
Please help as I need to set it up for demo soon.
address = strDirName & strFileName
          cnnProj.Open "Provider = Microsoft.Project.OLEDB.12.0; Project Name =" & address
          
          
          rstTasksProj.Open "SELECT TaskName, TaskStart, TaskFinish,TaskText1,TaskResourceNames, TaskNotes, TaskUniqueID, TaskPercentComplete FROM tasks where taskuniqueid > 0 and TaskText1 <> '' ", cnnProj

Open in new window

0
Comment
Question by:rnemani
3 Comments
 
LVL 3

Expert Comment

by:vohalloran
ID: 24421827
Have you checked your references?  You probably need the Microsoft Project 12.0 Object Library.
 
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 24438032
What is cnnProj declared as ?
0
 

Accepted Solution

by:
rnemani earned 0 total points
ID: 25386182
thanx,
I solved the problem by getting a csv file from the project server
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question