Solved

Unable to read mpp file using ACCESS VBA

Posted on 2009-05-18
3
594 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now