M
meaghantron
Hello,
I am working on an archival database of media materials related to the
accomplishments of a non-profit group. One section of the database is devoted
to articles. I have a series of tables separated into types of articles
(Newspaper, Magazine, Blog, etc.) For this question, I will be focusing on
the set of Magazine tables.
Table MagazineArticle contains:
MagazineAID (article ID, PK)
ArticleTitle
Date/Issue
Summary/Subj
StartPage
EndPage
MagazineID (for name of Magazine, FK)
Field1 (attachment field)
Related by a one to many relationship is the table Magazine which contains
MagazineID(PK)
MagazineName
Both an Author table (Author, Author.ID) and a Projects table (Project Name,
Projects.ID) are connected to the MagazineArticle table using the Junction
tables AuthorArticle and ProjectMagazine, respectively.
One magazine article can have many authors or can reference many projects.
Just as much as one Project can be referenced in many articles, or one author
can write multiple articles in multiple magazines, resulting in the
many-to-many relationships.
The problem I'm having is that because I have the two many-to-many
relationships, when I create a query showing all related article fields from
these tables, I am not allowed to create a query where I can edit the data in
the records. If I leave out projects, fore example, I can get article records
related to the multiple authors, and edit those records. Conversely if I
leave out Authors, I can get edit the resulting records grouped by project. I
would like, however, to create a synthesized query to show as much
information about the article as possible.
Is the problem in how I set up my relationships? Is there a way to get
access to recognize the multiple many-to-many relationships and create the
ideal query? Do i need to create queries with sub-queries? What is the best
strategy for me to get around this issue?
Thanks,
M
I am working on an archival database of media materials related to the
accomplishments of a non-profit group. One section of the database is devoted
to articles. I have a series of tables separated into types of articles
(Newspaper, Magazine, Blog, etc.) For this question, I will be focusing on
the set of Magazine tables.
Table MagazineArticle contains:
MagazineAID (article ID, PK)
ArticleTitle
Date/Issue
Summary/Subj
StartPage
EndPage
MagazineID (for name of Magazine, FK)
Field1 (attachment field)
Related by a one to many relationship is the table Magazine which contains
MagazineID(PK)
MagazineName
Both an Author table (Author, Author.ID) and a Projects table (Project Name,
Projects.ID) are connected to the MagazineArticle table using the Junction
tables AuthorArticle and ProjectMagazine, respectively.
One magazine article can have many authors or can reference many projects.
Just as much as one Project can be referenced in many articles, or one author
can write multiple articles in multiple magazines, resulting in the
many-to-many relationships.
The problem I'm having is that because I have the two many-to-many
relationships, when I create a query showing all related article fields from
these tables, I am not allowed to create a query where I can edit the data in
the records. If I leave out projects, fore example, I can get article records
related to the multiple authors, and edit those records. Conversely if I
leave out Authors, I can get edit the resulting records grouped by project. I
would like, however, to create a synthesized query to show as much
information about the article as possible.
Is the problem in how I set up my relationships? Is there a way to get
access to recognize the multiple many-to-many relationships and create the
ideal query? Do i need to create queries with sub-queries? What is the best
strategy for me to get around this issue?
Thanks,
M