Resource Rate on Resource Pool

A

Anatess

Hi,
I've googled all day long for an answer but all I found were similar
questions with no answers. I'm hoping you can answer my question or lead to
me to a site that may have the answer.
I'm trying to understand where the resource rates are found on the tables.
I found MSP_RESOURCE_RATES table, but it looks like this table only gets
populated when the resource is assigned to a project. But, when I open the
enterprise resource pool cost tab there are rates in there before I even
assign the resource to a project. So, what table are these rates stored?

Thank you for your assistance.
 
S

Stephen Sanderlin

In the future, please use the microsoft.public.project.developer
newsgroup for these type of questions. You will get a better response.

The rates are stored in the databases in a binary format. Instead of
using the database, you can obtain this information from the Resource
web service of the PSI through the ReadResource and ReadResources
methods. The returned datasets will contain a ResourceRates table.


--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
A

Anatess

Hi Stephen,
Thank you for your quick response. The reason why I didn't post this in the
developers section is because, unfortunately, I'm not in IT so I don't have
access to a developer's workbench. All I have access to is a reporting tool
that has a read-only connection directly to the project server tables where
you can run sql queries. I've been pretty successful with getting some basic
adhoc reporting even figuring out outline codes. But, this resource rate
table is stumping me. Any MS Project 2003 table structure insights would be
greatly appreciated.

regards,
Anatess
 
C

Chak

Hello Anatess,

Yes, you might be expecting from this group something instead from
developers group. No problem.. here is the SQL query for you, this
query list all enterprise resources with their standard rate and also
indicates whether resource is real resource or generic resource.

SQL Query to list the enetreprise resources with their rates in MS
Project Server 2003:

******************************************************************************

SELECT
B.res_uid AS RES_UID,
convert(int,[ResourceEnterpriseNumber1]) as RSRC_ID,
CONVERT(VARCHAR(1000),RES_NAME) as RSRC_NM,
B.RES_STD_RATE as RES_RATE,
CASE
WHEN ResourceEnterpriseGeneric = 1 THEN 'Generic'
WHEN ResourceEnterpriseGeneric = 0 THEN 'Real'
END AS RES_TYPE
FROM
dbo.MSP_VIEW_RES_ENT A
JOIN
dbo.MSP_RESOURCES B
ON A.ENT_ResourceUniqueID=B.res_uid and b.proj_id=1

***********************************************************************************

If you are using "Resource outline codes or Enterprise text columns",
you have to join the above query to few more tables to get the
complete details of enterprise resource pool. I hope you know, how to
get the enterprise columns info, you can also refer the sample queries
in my web site:

http://www.epmcentral.com/pjadmin/entfieldsdbscripts.php


Thanks
Chak
http://www.epmcentral.com
 
A

Anatess

Hi Chak!
THANK YOU THANK YOU THANK YOU. This is awesome! I do have one more
question though... I know, I know, never satisfied, right...
Some of the resources have 2 entries on the COST tab (both entries on the
default table). The first entry has an effective date from last fiscal year
with last year's rate, and the second entry is this fiscal year with this
year's new rate. I found these rates on MSP_RESOURCE_RATES but, they're
specific to a project (proj_id is key). Now, when I open Enterprise Resource
Pool, this is for a new project which is not in the MSP_RESOURCE_RATES table.
Also, there is no entry on the MSP_RESOURCE_RATES for proj_id = 1. Where
does the Enterprise Pool get these values from? I only see the current
standard rate on the MSP_RESOURCES table.

Again, thank you very much for all the information.

regards,
Anatess

Chak said:
Hello Anatess,

Yes, you might be expecting from this group something instead from
developers group. No problem.. here is the SQL query for you, this
query list all enterprise resources with their standard rate and also
indicates whether resource is real resource or generic resource.

SQL Query to list the enetreprise resources with their rates in MS
Project Server 2003:

******************************************************************************

SELECT
B.res_uid AS RES_UID,
convert(int,[ResourceEnterpriseNumber1]) as RSRC_ID,
CONVERT(VARCHAR(1000),RES_NAME) as RSRC_NM,
B.RES_STD_RATE as RES_RATE,
CASE
WHEN ResourceEnterpriseGeneric = 1 THEN 'Generic'
WHEN ResourceEnterpriseGeneric = 0 THEN 'Real'
END AS RES_TYPE
FROM
dbo.MSP_VIEW_RES_ENT A
JOIN
dbo.MSP_RESOURCES B
ON A.ENT_ResourceUniqueID=B.res_uid and b.proj_id=1

***********************************************************************************

If you are using "Resource outline codes or Enterprise text columns",
you have to join the above query to few more tables to get the
complete details of enterprise resource pool. I hope you know, how to
get the enterprise columns info, you can also refer the sample queries
in my web site:

http://www.epmcentral.com/pjadmin/entfieldsdbscripts.php


Thanks
Chak
http://www.epmcentral.com



Hi Stephen,
Thank you for your quick response. The reason why I didn't post this in the
developers section is because, unfortunately, I'm not in IT so I don't have
access to a developer's workbench. All I have access to is a reporting tool
that has a read-only connection directly to the project server tables where
you can run sql queries. I've been pretty successful with getting some basic
adhoc reporting even figuring out outline codes. But, this resource rate
table is stumping me. Any MS Project 2003 table structure insights would be
greatly appreciated.

regards,
Anatess












- Show quoted text -
 
S

Stephen Sanderlin

I'm sorry, Anatess... I thought you were using PS07... My fault :)

Chak's guidance is appropriate for 2003. I'm glad you were able to come
to a resolution.

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
A

Anatess

Hi Stephen, Chak,

I haven't really gotten to a resolution yet. Chak was super helpful in
giving me insight on all the other resource enterprise information but not
the Cost Rate Table that I need. We only use Cost Table A (default) so it
should be a bit simpler.

In the UI:
I open MS Project 2003 and connect to Project Server. Then on Tools, I open
Enterprise Resource Pool, add a resource, then double-click on that resource
to get more enterprise information. On this window, I can click on the Cost
tab and get the Resource Rates. Now, some resources have more than 1 entry
on that Cost A table with different effective dates. So then, I change the
dollar value of the entry corresponding to current date and save the
enterprise resource pool. Sure enough, the RES_STD_RATE field on
MSP_RESOURCE for that resource is changed. Good. So, then, I go back and
change the dollar value of the entry for a future date. This is where I get
lost. Because I can't find this data ANYWHERE in Project Server database.
RES_STD_RATE is still the current rate (of course) and the future rate is
nowhere to be found. The MSP_RESOURCE_RATES table is still the old rate as
expected because we didn't touch any project, just enterprise resource pool.
The changed rate for a future date is stored somewhere because anybody else
in the department can open that Enterprise Resource Pool and see the changed
rate in the UI.

I see that you've encountered this question several times before. I even
found Chak's Macro that changes the rates using temporary table as input.
But, I can't find in that macro a clue as to the physical location of the
Enterprise Resource Pool Cost Table entries in the project server database.
MSP_RESOURCE_RATES is not it.

Do you know where it could be? Thank you for your time.

regards,
Anatess
 
S

Stephen Sanderlin

Anatess,

You'll have to forgive me (and I imagine most of us here)... it's been
a little while since I've worked in 2003, so it takes a little while
for me to change gears, if you will :eek:)

I'm pretty sure that Resource Cost Table information is stored in
binary format within the MSP_RES_GLOBAL_BINARY table. According to
PJDB.htm: "MSP_RES_GLOBAL_BINARY - This table stores binary data
related to the global enterprise resource pool and is only used with
Project and Project Server."

In addition, PJDB.htm says that "To specify a single rate for a
resource, you must add a row to the MSP_RESOURCE_RATES table and enter
values for at least the following columns:

Note You cannot specify resource rates for enterprise resources using
this example."

This further strengthens my belief that this is stored in
MSP_RES_GLOBAL_BINARY, since if I can't input rates for Enterprise
Resources here, why would I be able to read them?

I'm unable to find anywhere else that this would be stored.

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
A

Anatess

Hi Stephen,

It makes sense. Thank you for all this info! I'll have to rethink my
report. Maybe I can get the business to create a dummy project that is
progressed weekly or something to surface these values to a query. In any
case, at least I got some clear path to where I'm going now.

You guys rock!

regards,
Anatess
 
S

Stephen Sanderlin

One possibility would be to create a macro, kicked off on a project
save, that would gather the rate information and dump it out to a
database table.

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
J

Jonathan Sofer

Anatess,

I don't believe you need to have a dummy project that is progressed weekly.
I have found that all the cost table resource rates will appear in
MSP_RESOURCE_RATES table once the resource is assigned to at least one
project. The resource does not have to actually be assigned to a task, you
can create a blank project and build the resource onto the team and that
would be enough to expose that data.
 
S

Stephen Sanderlin

I'm unable to duplicate this behavior in my PS03 VPC. Did you do
something special to get this to work?

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
J

Jonathan Sofer

Stephen,

I just tried it again and it works for me. I started with a vanilla blank
PS 2003 VPC. I create one enterprise resource with rate tables A, B & C and
multiple date ranges in each cost table with standard and overtime rates. I
then saved and checked in the enterprise resource.

I verified the MSP_RESOURCE_RATES table was still blank.

Then I create a blank project plan and added the resource to the schedule.
No tasks or assignments were added. I saved the schedule and closed it. In
PS 2003, the save also performs a publish project plan action behind the
scenes.

I then verified that the MSP_RESOURCE_RATES table contained all of that
resource's cost table rates.

Project ID Resource ID Cost Table To From Std Rate Overtime Rate
5 1 0 1/1/1984 5/30/2008 8:00 111 55
5 1 0 5/30/2008 8:00 6/27/2008 8:00 112 55
5 1 0 6/27/2008 8:00 7/25/2008 8:00 113 55
5 1 0 7/25/2008 8:00 7/25/2009 8:00 114 55
5 1 0 7/25/2009 8:00 12/31/2049 23:59 199 55
5 1 1 1/1/1984 5/21/2008 8:00 22 24
5 1 1 5/21/2008 8:00 5/21/2009 8:00 23 24
5 1 1 5/21/2009 8:00 5/21/2010 8:00 24 24
5 1 1 5/21/2010 8:00 12/31/2049 23:59 25 24
5 1 2 1/1/1984 5/21/2008 8:00 31 23
5 1 2 5/21/2008 8:00 5/21/2009 8:00 32 23
5 1 2 5/21/2009 8:00 5/21/2010 8:00 33 23
5 1 2 5/21/2010 8:00 12/31/2049 23:59 34 23
 
S

Stephen Sanderlin

I whipped up a vanilla PS03 VPC and following your steps... everything
worked fine. It appears that there is some kind of problem with my MS
PS03 Demo VPC -- when I try to use existing resources on that VPC
(that's what I was using before) it doesn't populate MSP_RESOURCE_RATES.

I've been testing (more like banging my head) for a while now... In my
sample VPC, if I create a new resource and follow your steps, it works.
As for the existing resources, I've discovered that for resources that
refuse to populate, if you check them out of the enterprise resource
pool, manually re-enter their cost information, save/check them back
in, and then save a project they are assigned to, MSP_RESOURCE_RATES
seems to populate correctly.


Anatess, can you try doing this and letting us know if it works?


I've examined the MSP_RESOURCES and MSP_WEB_RESOURCES tables, and
except for the RESERVED_DATA columns, there is no difference between a
new resource, an existing resource that doesn't get populated into
MSP_RESOURCE_RATES, and an existing resource that does get populated
into MSP_RESOURCE_RATES. There may be some sort of problem somewhere in
the binary data... and it's certainly possible that whatever is
preventing my demo VPC from populating that table correctly is also
causing the same issue for Anatess. I'm interested to see the results
of his test.

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
C

Chak

Anatess, Stephen and Jonathan,

Stephen and Jonathan: Thanks for your active participation and helping
Anatess.

Anatess: Thanks for your kind compliments and I hope we will get some
solution for your needs. Sorry, I was busy in conducting training
sessions for our PMs in my organization and unable to catch you on
this discussion thread.

Now, coming to the actual discussion:

All of you noticed the table name called “MSP_Resource_Rates”. The
issue is Microsoft desgined the application to store resource cost
tables information in binary format. They are using application layer
to display this information on enterprise resource pool. The good
thing here is, MSP_Resource_Rates always holds the project resources
information with all details like standard rate, effective date, cost
table name etc. We can take advantage of this feature.

Jonathan: You are absolutely in correct direction. You can have dummy
project and add all the enterprise resources to get SQL view to
generate the required resource information.

Anatess: Here are two solutions that I can recommend to address your
needs. One solution as Jonathan proposed to you and other solution as
Stephen proposed to you.

Solution 1: SQL view; advantage of this approach is no development
activity required; the down side is, some manual process is required
to manage this approach.

Solution 2: VBA, I seen Stephen was talking about this approach on his
postings. I am giving the sample macro to read enterprise resource
information. Instead of message box, you can capture info into csv
file or insert into new table

I am giving the detailed steps for both the solutions here.

******************************************************************
Solution 1: Dummy project and SQL Approach:

Steps:

1) Create a dummy project called “EPM Resource Rates”

2) Add all the enterprise resources using Build Team or similar
method

3) Save project plan in to server

4) Find the PROJ_ID for EPM Resource Rates by running following
SQL

SELECT PROJ_ID FROM MSP_PROJECTS
WHERE PROJ_NAME = ‘EPM Resource Rates’

5) Assume, you have PROJ_ID is 603

So run the following SQL to get the enterprise resource rate info
for each cost table with effective dates

SELECT MSP_RESOURCES.RES_NAME,

CASE MSP_RESOURCE_RATES.RR_RATE_TABLE
WHEN 0 THEN 'Cost Table A'
WHEN 1 THEN 'Cost Table B'
WHEN 2 THEN 'Cost Table C'
WHEN 3 THEN 'Cost Table D'
WHEN 4 THEN 'Cost Table E'
END AS RATE_TABLE,

MSP_RESOURCE_RATES.RR_FROM_DATE AS EFFECTIVE_DATE,
MSP_RESOURCE_RATES.RR_TO_DATE AS TILL_DATE,
MSP_RESOURCE_RATES.RR_STD_RATE, MSP_RESOURCE_RATES.RR_OVT_RATE
FROM MSP_RESOURCE_RATES INNER JOIN
MSP_RESOURCES ON MSP_RESOURCE_RATES.PROJ_ID =
MSP_RESOURCES.PROJ_ID
WHERE (MSP_RESOURCE_RATES.PROJ_ID = 603) AND
(MSP_RESOURCES.RES_NAME IS NOT NULL)

ORDER BY MSP_RESOURCES.RES_NAME

***********************************************************************************************************


Solution 2: VBA Approach

You no need to save this macro. Just copy and paste this code to
verify the results. Please remember, this code gives the complete idea
to develop code to read enterprise resource info with cost tables and
effective date info.

Please understand the purpose of below statements to expand the code
for other tables.

a) Set prs = r.CostRateTables("A").PayRates

Here we are referring to table A, if you want to get the info from
other tables, please change the CostRateTables accordingly

b) prs(1).EffectiveDate

Here we are getting the information from row 1; if you have multiple
row info, you have to give prs(2), prs(3) and so on next statements

STEPS:

1) Tools menu -> Enterprise Options -> Open Enterprise Resource Pool

2) Select one resource by selecting the check box against resource
name on Open Enterprise Resources dailog box

3) Click on "Open/Add" to open the enterprise resource info in
resource pool

4) Tools menu -> Macro -> Visual Basic Editor

5) Double click on "ThisProject(checked-ot Enterprise Resources)"on
project explorer from left pane to open the code window

6) Paste the following code and run the macro

Sub GetRates()



Dim r As Resource
Dim rs As Resources
Dim prs As PayRates

Set rs = ActiveProject.Resources

For Each r In rs


Set prs = r.CostRateTables("A").PayRates

Dim dtEffective
Dim dblStandRate


dtEffective = prs(1).EffectiveDate

dblStandRate = prs(1).StandardRate


MsgBox ("Resource name is " & r.Name & " and with effective
from " & dtEffective & " and standard rate is " & dblStandRate)





Next r


End Sub


***************************************************************

Thanks
Chak
http://www.epmcentral.com
 
S

Stephen Sanderlin

Thanks for the very comprehensive follow-up, Chak.

I've been able to reproduce the "incomplete population of
MSP_RESOURCE_RATES" that Anatess has described in my VPC, and have
proposed a potential workaround that worked for me and will hopefully
resolve his issue. Unfortunately, he has not gotten back to us yet.

I've seen the issue of MSP_RESOURCE_RATES not populating correctly a
couple time before, but it was never an issue that I investigated since
I wasn't doing any reports on cost rate tables.

--
Stephen Sanderlin
Owner/Founder - EPMFAQ
http://www.epmfaq.com/
http://forums.epmfaq.com/

EPM Solutions Architect / Principal Consultant - BT Professional
Services
http://bt.ins.com/

This electronic message, along with any information, advice, and
opinions it contains, are mine alone and are not representative of my
employer. All information is provided in "GOOD FAITH" and on an "AS IS"
basis only. I provide no presentations or warranties, express or
implied, including implied warranties of fitness for a particular
purpose, merchantability, title, and noninfringement. I strongly advise
you to extensively test any changes, workarounds, or techniques
described herein on a development system prior to implementation in a
production environment, and you are hereby notified that I bear no
responsibility whatsoever for any loss, harm, or otherwise negative
outcomes resulting from your actions, whether or not said actions were
a result of this electronic message, directly or indirectly.
 
C

Chak

Hi Anatess

I hope you already read my previous posting about proposed solutions
for your need.

I would like to make it clear, Enterprise resource pool always shows
the Standard rate for current period. The future rates will not show
until that day.

All future rates in cost tables are saved in MSP_Resource_Rates table
in binary format. Microsoft using the internal application layer to
read and display binary date in resource sheet views of the project
plan and in enterprise resource pool.

Well, to make it easy, I suggest Solution 1 and it's easy to manage.
Just add all enterprise resource names in project plan and save it to
server. No tasks and assignments required. It's just an blank plan
with all enterprise resource names.
Please make sure, whenever new enterprise resource added to pool, add
the same name in this project plan.

Run the SQL query that I given in Solution 1, you are all set. You
will see all the names and future/currect/old effective dates and
rates info. What else you need? :)

Please let me know, if you have any questions. Please email me, if you
need any further help. (e-mail address removed)

Thanks
Chak
http://www.epmcentral.com
 
A

Anatess

Hi Chak, Stephen,

You know, that vba script is working great for me! I've been using it with
slight modifications to write the thing out to an export file. Now, that
crazy thing is, we are now needing the WRES_ID data to be populated in that
file. I can't seem to find WRES_ID in the Resource object. ID and UniqueID
are not the same as WRES_ID... Do you know how I can extract that piece of
info?

Here's the script that I came up with after I modified the one you gave me.
As you can see, I added ID. But, this is not what we need, we actually need
the WRES_ID and not just the row number on the Enterprise Resource list.
Thank you, thank you, thank you for your assistance.

Sub GetRates()
On Error GoTo Err_GetRates

intFileNum = FreeFile
Open "c:\tx_epk_resources_rate.txt" For Output As #intFileNum ' Open file
for output.

Dim r As Resource
Dim rs As Resources
Dim prs As PayRates
Dim Again

Set rs = ActiveProject.Resources

For Each r In rs
Set prs = r.CostRateTables("A").PayRates

s = 1
If prs.Count >= s Then
Again = True
Else
Again = False
End If
Do While Again = True

Dim dtFromDate
Dim dtToDate As Date
Dim dblStdRate
Dim dblOTRate
Dim dblCostPerUse

dtFromDate = prs(s).EffectiveDate
If s < prs.Count Then
dtToDate = prs(s + 1).EffectiveDate
Else
dtToDate = "12/31/2049"
End If
dblStdRate = Split(prs(s).StandardRate, "/")
dblOTRate = Split(prs(s).OvertimeRate, "/")
dblCostPerUse = prs(s).CostPerUse


Write #intFileNum, r.ID, r.Name, 0, dtFromDate, dtToDate,
dblStdRate(0), 2, dblOTRate(0), 2, dblCostPerUse

If prs.Count = s Then
Again = False
Else
s = s + 1
End If

Loop
Next
Close #intFileNum ' Close file.
MsgBox ("Extract Completed")

Exit_GetRates:
Exit Sub

Err_GetRates:
Close #intFileNum
MsgBox ("Error Found. Run Aborted.")

End Sub


regards,
Anatess
 
C

Chak

Hello Anatess,

I am glad that VBA code is working for you.

Resource sheet view in MS Project is depends on table called "Entry"
in Resource Section. (You can verify the columns in Entry by doing
this: Lauch MS Project Pro -> View menu -> Resource Sheet view ->
Insert Column; These are the only column can only can be accessible
from Resource object in VBA)

WRES_ID is database value for each resource. We don't have access to
this value from MS Project Professional.

You can use Enterprise Unique ID column, it's unique for every
enterprise resource and you can access this value on enterprise
resource pool. Insert this column on enterprise resoure pool to view
the values for each resource.

ID, Unique ID are local to the each project plan. Suppose you have
Anatess is the resource in enterprise resource pool and enterprise
unique id is same for Anatess on enterprise resource pool and on all
the project plans that Anatess is working. Where as unique id for
Anatess is different on every project plan. Unique id is local to the
project planl.

So, if you are looking to have unique identifer for each resource
irrespective of the project plan's unique ids, I suggest to use
Enterprise Unique ID column.

Thanks
Chak
http://www.epmcentral.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top