Re: Multiple Many-to-Many relationships
- From: "TedMi" <tedmi@xxxxxxxxxxx>
- Date: Tue, 27 Oct 2009 12:49:12 -0400
You need to update through forms, not a query. Create a main form which will
display a single record from the Article table. Put into it a subform which
will display a list of authors of that article. Then another subform which
will display a list of projects for that article.
For the subforms, I like datasheet or continuous form view, with a
double-click event on every field that opens up a single form showing
details for one author or one project.
This structure will allow you to update any of your tables.
You might then want to repeat the structure with the main form showing
projects, and subforms showing articles and authors, and/or main form of
authors with subforms of articles and projects.
-TedMi
"Meaghan S" <meaghantron@xxxxxxxxx> wrote in message
news:4ff4079d-aa67-474e-b37f-3703766f259e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How in this organization do I account for the fact that each article
needs to be able to accommodate multiple authors, each author can have
multiple articles, each article can reference more than one project,
and each project is related to multiple articles? From this
perspective, I am not sure why I would remove the many-to-many
configuration. In fact, your suggestion neglects any relationship
between article and project, which is extremely important for how I
have set up search criteria in my queries.
On Oct 26, 4:20 pm, KARL DEWEY <KARLDE...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I do not think you need the many-many but tables like these --
Project?
ProjID ? PK
Title
Manager
Start - DateTime
?etc
Article --
ArticleID - PK
Author - FK
Periodical FK
ArticleTitle
Date/Issue
Summary/Subj
StartPage
EndPage
Field1 (attachment field)
Periodical
PeriodicalID ? PK
Title
Type ? (Newspaper, Magazine, Blog, etc.)
PubPeriod ? Weekly, Annual, As needed, etc.
? etc
Author ?
AuthID ? PK
FName
LName
?etc
Use form/subform to display the information.
--
Build a little, test a little.
"meaghantron" wrote:
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
.
- Follow-Ups:
- Re: Multiple Many-to-Many relationships
- From: Meaghan S
- Re: Multiple Many-to-Many relationships
- References:
- Multiple Many-to-Many relationships
- From: meaghantron
- RE: Multiple Many-to-Many relationships
- From: KARL DEWEY
- Re: Multiple Many-to-Many relationships
- From: Meaghan S
- Multiple Many-to-Many relationships
- Prev by Date: Relationships bwtween more than one table
- Next by Date: Re: Multiple Many-to-Many relationships
- Previous by thread: Re: Multiple Many-to-Many relationships
- Next by thread: Re: Multiple Many-to-Many relationships
- Index(es):
Relevant Pages
|