M
Mark VII
Hello --
I'm doing some development to pull Project data into an Access database to
do some rather elaborate reports. Is there a fields collection for a task
object, analagous to the fields collection for a tabledef object under DAO?
What I'm trying to do here is be able to write an assignment statement where
the field reference is variable instead of hard coded. I'm trying to avoid
having to write an assignment statement for every Project field of interest.
Here's some pseudocode for what I'm trying to do:
for each task in ActiveProject.tasks
for each field in Task object
'* look up access field name in a cross reference table
TargetTable.Fields(<field name from lookup>) = Task.Fields(<field
name
from task object>)
next field
next task
Looping through tasks is not an issue for me, and I've got the field name
cross reference figured out. The big unknown is the assignment statement.
TIA...
Mark
I'm doing some development to pull Project data into an Access database to
do some rather elaborate reports. Is there a fields collection for a task
object, analagous to the fields collection for a tabledef object under DAO?
What I'm trying to do here is be able to write an assignment statement where
the field reference is variable instead of hard coded. I'm trying to avoid
having to write an assignment statement for every Project field of interest.
Here's some pseudocode for what I'm trying to do:
for each task in ActiveProject.tasks
for each field in Task object
'* look up access field name in a cross reference table
TargetTable.Fields(<field name from lookup>) = Task.Fields(<field
name
from task object>)
next field
next task
Looping through tasks is not an issue for me, and I've got the field name
cross reference figured out. The big unknown is the assignment statement.
TIA...
Mark