L
lgray
Can someone please provide a basic example on how to loop through a recordset
and assign a value to a datafield that is based on the value of the preceding
record.
For example, in a table that includes projects and sub-project information,
there is a field for Starting Date and a field for Ending Date for each
sub-project. I will need to calculate the Starting Date and Ending date for
each sub-project on the basis of a calculation which will identify the Ending
Date of the preceding sub-project, add 1 day to the sub-project, and assign
this value as the Beginning Date of the next sub-project. The Ending Date
for the project is a simple calculation of Beginning Date + (estimated days
to complete), so I think I can handle that part.
I will be given the Starting Date of the entire project, and the estimated
days to complete the sub-projects. Because the estimated days to complete
the sub-projects are an average, they will be the same through the data.
and assign a value to a datafield that is based on the value of the preceding
record.
For example, in a table that includes projects and sub-project information,
there is a field for Starting Date and a field for Ending Date for each
sub-project. I will need to calculate the Starting Date and Ending date for
each sub-project on the basis of a calculation which will identify the Ending
Date of the preceding sub-project, add 1 day to the sub-project, and assign
this value as the Beginning Date of the next sub-project. The Ending Date
for the project is a simple calculation of Beginning Date + (estimated days
to complete), so I think I can handle that part.
I will be given the Starting Date of the entire project, and the estimated
days to complete the sub-projects. Because the estimated days to complete
the sub-projects are an average, they will be the same through the data.