Hello Eric,
I just did a quick test with a relatively simple Project 2007 SP-2
file. I was able to save the reporting data and create a query (SQL
below) to show task name, task start, assignment work, and resource
name. The joins are on MSP_EpmTask.TaskUID =
MSP_EpmAssignment.TaskUID and MSP_EpmResource.ResourceUID =
MSP_EpmAssignment.ResourceUID.
The SQL is:
SELECT MSP_EpmTask.Name, MSP_EpmTask.Start, MSP_EpmAssignment.Work,
MSP_EpmResource.Name
FROM MSP_EpmResource INNER JOIN (MSP_EpmTask INNER JOIN
MSP_EpmAssignment ON MSP_EpmTask.TaskUID =
MSP_EpmAssignment.TaskUID) ON MSP_EpmResource.ResourceUID =
MSP_EpmAssignment.ResourceUID;
Is your project a master project with inserted subprojects by
chance?
I hope this helps. Let us know how you get along.
Julie
Project MVP
Visit
http://project.mvps.org/ for the FAQs and additional
information about Microsoft Project
Those cubes are purely for reporting purposes and do not hold all
project
data. Further more they are over-written when the next report is
run and I
don't know if they store more than one per database or just
over-write the
same db each time?
--
Rod Gill
Microsoft MVP for Project
Author of the only book on Project VBA,
see:
http://www.projectvbabook.com
Hi Rod,
I'm using MSP 2007 and am able to export to an MDB.
I go to Reports - Visual Reports - Save Data - Save Database. Also
has the option of saving just the cubes, but I'm hoping to get a
bit
more functionality out of accessing the tables directly, and find
the
limitations of working with the cubes in Excel a little
frustrating.
Just wish I could tie the Assignment data back to the Resource
data
with a join is all.
Thanks for any help,
Eric
Hi Rod,
On that dialog box screen you have the option of saving a particular
cube (Task, Resource, Assignment, etc) and you can save to any name/
location you like, so they are not the default cubes that are
created
when you run a visual report. They don't get overwritten. There's
also the option to save the entire project as an Access database,
which is what I'm doing, and which is causing me grief because it
doesn't add the ResourceUID in the Assignment table, thus
eliminating
the ability to link (join) the two tables.
Here's the macro produced when you record the two actions.
Sub ExportData()
'Can export any of the default cubes
VisualReportsSaveCube strNamePath:="C:\temp\Task Usage.cub"
'Can export the entire project as an Access database
VisualReportsSaveDatabase strNamePath:="C:\temp\ProjectName.mdb"
End Sub