D
Dustin Ventin
I know I've posted about this before, but hopefully this should be the last
time.
The answers I have been receiving mostly seem to describe how to VIEW the
data, and not CHANGE it.
Now, I have a series of records in my user-created database that looks like
this:
PROJ_ID TASK_ID ActualCost_Date Amount RES_ID
1 1 7/12/2004 $500 4
1 2 7/12/2004 $700 4
1 5 7/13/2004 $1600 4
1 5 7/14/2004 $300 4
For each task in my project, I am assigning a resource called 'Actual Cost'
(a material). Using the table above, I want to assign the Amount to the
Dates for each Task listed, under the timescaled cost.
I can already assign the 'Actual Cost' resource to the appropriate Tasks (as
listed in the table). Then I have to add the timescaled data. I am using
the code:
objAssignment.TimeScaleData("7/14/2004", "7/17/04",
pjAssignmentTimescaledCost, pjTimescaleDays)
....with objAssignment being set to the recently inserted assignment. Now, I
want to make those dates come from the database, and then use the 'Add'
method to insert timescaled cost data (also from the database):
objAssignment.TimeScaleData(rsExportData(2)), rsExportData(2)),
pjAssignmentTimeScaledCost, pjTimescaleDays).Add (1, rsExportData(3))
I started with trying to just set the date and print the number of values:
Msgbox(objAssignment.TimeScaleData(rsExportData(2)), rsExportData(2)),
pjAssignmentTimeScaledCost, pjTimescaleDays).Count)
....which works WITHOUT the references to the recordset. Project, however,
does not seem to recognize those recordset fields (from the database) as
being dates, and comes up with an error message when the code above is run.
Any ideas? Has anyone successfully done what I am trying to do? Thanks!
Dustin Ventin
(e-mail address removed)
time.
The answers I have been receiving mostly seem to describe how to VIEW the
data, and not CHANGE it.
Now, I have a series of records in my user-created database that looks like
this:
PROJ_ID TASK_ID ActualCost_Date Amount RES_ID
1 1 7/12/2004 $500 4
1 2 7/12/2004 $700 4
1 5 7/13/2004 $1600 4
1 5 7/14/2004 $300 4
For each task in my project, I am assigning a resource called 'Actual Cost'
(a material). Using the table above, I want to assign the Amount to the
Dates for each Task listed, under the timescaled cost.
I can already assign the 'Actual Cost' resource to the appropriate Tasks (as
listed in the table). Then I have to add the timescaled data. I am using
the code:
objAssignment.TimeScaleData("7/14/2004", "7/17/04",
pjAssignmentTimescaledCost, pjTimescaleDays)
....with objAssignment being set to the recently inserted assignment. Now, I
want to make those dates come from the database, and then use the 'Add'
method to insert timescaled cost data (also from the database):
objAssignment.TimeScaleData(rsExportData(2)), rsExportData(2)),
pjAssignmentTimeScaledCost, pjTimescaleDays).Add (1, rsExportData(3))
I started with trying to just set the date and print the number of values:
Msgbox(objAssignment.TimeScaleData(rsExportData(2)), rsExportData(2)),
pjAssignmentTimeScaledCost, pjTimescaleDays).Count)
....which works WITHOUT the references to the recordset. Project, however,
does not seem to recognize those recordset fields (from the database) as
being dates, and comes up with an error message when the code above is run.
Any ideas? Has anyone successfully done what I am trying to do? Thanks!
Dustin Ventin
(e-mail address removed)