Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / February 2004

Tip: Looking for answers? Try searching our database.

table relationship

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HENRY ONYEAGBAKO - 01 Feb 2004 21:23 GMT
I have two tables called film and showtimes that I am trying to create a
relationship between. The showtime tables shows the date and time that a
particular film is seen some more than once. I tried to link the two tables
with using a unique field called ShowID which is the key field in showtime.
However the result was that the one to many relationship arrow pointed the
wrong way. It seemed to suggest that for every one viewing  there is more
than one film. But the reverse is true for every film there is more than one
viewing. How do I go about showing the correct relationship
JeffW - 01 Feb 2004 21:59 GMT
you should have the primary key from your film table as a foreign key in
your showtime table.

tblShowtimes:
ShowID (PK - auto)
ShowTimes
FilmID    (FK - long)

JW

> I have two tables called film and showtimes that I am trying to create a
> relationship between. The showtime tables shows the date and time that a
[quoted text clipped - 4 lines]
> than one film. But the reverse is true for every film there is more than one
> viewing. How do I go about showing the correct relationship
JeffW - 01 Feb 2004 22:35 GMT
this would really be a m:m relationship - many films with many showtimes

tblShowTimes
   ShowID
   ShowTimes

tblFilms
   FilmID
   Film

tblFilmTimes - junction table
   FilmID (FK - long)
   ShowID (FK - long)
   ShowingDate

Your main form could be based on tblFilms (or tblShowTimes) and the subform
based on tblFilmTimes.

JW

> you should have the primary key from your film table as a foreign key in
> your showtime table.
[quoted text clipped - 3 lines]
> ShowTimes
> FilmID    (FK - long)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.