Resource Code while looking at Assignment Data?

J

JJ

I noticed that I could not directly access the Resource Code field while looking at Assignment data.

I have the following code (specifics removed). Am I on the right track?

Dim tsk as Task
Dim asn as Assignment
Dim ResCode as String

For each tsk in ActiveProject.Tasks

For each asn in tsk.Assignments

ResCode = tsk.Resources(?????).Code

Next

Next

I have tried the following where the "?????" is:
asn.ResourceID
asn.ResourceUniqueID

Is there another way of getting to Resource Code from the Assignment? Is there an ID that links Assignment to Resource?

Thanks!
JJ
 

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