Auto create related records

  • Thread starter TraciAnn via AccessMonster.com
  • Start date
T

TraciAnn via AccessMonster.com

My db tracks activities that are scheduled to occur for a given project. The
activities need to be dynamic, allowing managers to add and remove activities
at will during the course of the project. At the beginning of the project
(and throughout), contacts are assigned to the project and need to have a
record created for each activity within that project. As the project
progresses, a DateStamp and UserStamp field is populated by a db user,
signifying the contact completed the said Activity.

Structure:
Project table
ProjectID (PK)
Project

Activity table
ActivityID (PK)
Activity
ProjectID (FK)
Sequence (Order in which activities are to be completed)

Contact table
ContactID (PK)
ContactFirstName
ContactLastName
etc.

ProjectContact table
ProjectContactID (PK)
ProjectID (FK)
ContactID (FK)
Role

ContactActivity table
ContactActivityID (PK)
ContactID (FK)
ActivityID (FK)
Completed (Y/N)
TimeStamp
UserStamp

Needed:
1. When a record is created in ProjectContact, how can I automatically create
ContactActivity records for all the activities associated with the same
project?
2. If a manager adds an Activity record to the project, how do I
systematically create ContactActivity records for Contacts already assigned
to the project?
3. Are there other issues I need to consider in this process?

Thanks for all your help guys! You are WONDERFUL!!!
 

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