Solved

Unable to read mpp file using ACCESS VBA

Posted on 2009-05-18
3
650 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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