I'm building a database for document distribution. Right now I have a many to many relationship between Document and Revision.
Document
DocumentID (PK)
DocumentTitle
DocumentRevision
DocumentID (FK)
RevisionID (FK)
Revision
RevisionID (PK)
Revision
I also need to associate each DocumentRevision with one or more projects AND it is valid to have two different revisions of the same document on different projects or on the same project (for example, we are finishing one project, received a new revision for another quantity...). So I thought I'd just throw in another many-to-many by adding ProjectID to the DocumentRevision table with the same RevisionProject to Project relationship as before. But there is no FK in the DocumentRevision table to join to the PK of ProjectID in the Project table (access complains). How can I implement this many-many-many? Also, I do need to track both ways, documents down to projects and projects back to documents.
Thanks for any ideas.
Document
DocumentID (PK)
DocumentTitle
DocumentRevision
DocumentID (FK)
RevisionID (FK)
Revision
RevisionID (PK)
Revision
I also need to associate each DocumentRevision with one or more projects AND it is valid to have two different revisions of the same document on different projects or on the same project (for example, we are finishing one project, received a new revision for another quantity...). So I thought I'd just throw in another many-to-many by adding ProjectID to the DocumentRevision table with the same RevisionProject to Project relationship as before. But there is no FK in the DocumentRevision table to join to the PK of ProjectID in the Project table (access complains). How can I implement this many-many-many? Also, I do need to track both ways, documents down to projects and projects back to documents.
Thanks for any ideas.