A family of Microsoft relational database management systems designed for ease of use.
Hello Lula,
You only need your second instruction as follows:
projet.tasks(num_tache).assignments.add Resource:=projet.resources(num_resource),units:=projet.resources(num_resource).maxunits
More elegant:
Set Reso=projet.resources(num_resource)
set Tac=projet.tasks(num_tache)
tac.assignments.add resource:=num_resource,units:=reso.maxunits
An alternative is your other approach:
projet.Tasks(num_tache).ResourceNames = strRessourceName
projet.Tasks(num_tache).Assignments(1).units=projet.resources(num_resource).maxunits
(only works if this is the first resource)
.. and there are more combinations
Greetings,