Re: Table Design - Relationships
From: Tom (bockREMOVETHIS_at_sigmongroup.com)
Date: 02/13/04
- Next message: Jeff Boyce: "Re: Setting AutoNumber back"
- Previous message: Tim Ferguson: "Re: Purchase Orders"
- In reply to: Graham R Seach: "Re: Table Design - Relationships"
- Next in thread: Graham R Seach: "Re: Table Design - Relationships"
- Reply: Graham R Seach: "Re: Table Design - Relationships"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Feb 2004 19:46:05 -0500
Graham:
I now realize that I have a problem with the forms. I followed your
instructions and designed the tables as suggested.
I now wanted to use forms w/ subforms to enter the data. However, no matter
how I design the forms, I always get errors, e.g. "Forms not updatable" or
"Missing Index".
Looking at the raw tables via a combination query, all records are lined up
properly and I have the accurate count of records.
Any suggestions as to how I must string them into a form?
-- Thanks again, Tom "Graham R Seach" <gseach@NOSPAM_pacificdb.com.au> wrote in message news:uOHOVtb8DHA.3704@tk2msftngp13.phx.gbl... > Tom, > > You just need to create links between tblFacility and tblAccount, and > between tblAccount and tblBills. > > The relationships you define depend entirely on their real-world > relationships. Can a facility have a bill without an account? Based solely > on what you've identified thus far, the following relationships may suffice. > > tblFacility > FacilityID 'Autonumber - Primary Key > FacilityName > '--- other columns > > tblAccount > AccountID 'Autonumber - Primary Key > FacilityID 'Long Integer - Foreign Key to tblFacility.FacilityID > '--- other columns > > tblBills > BillID 'Autonumber - Primary Key > AccountID 'Long Integer - Foreign Key to tblAccount.AccountID > '--- other columns > > The relationships would be: > tblFacility.FacilityID (many) --> tblAccount.FacilityID (one) > tblAccount.AccountID (many) --> tblBills.AccountID (one) > > Graham R Seach > Microsoft Access MCP, MVP > Sydney, Australia > > > "Tom Bock" <bock@sigmongroup.com> wrote in message > news:eEZsTFb8DHA.2392@TK2MSFTNGP11.phx.gbl... > > I need some feedback w/ table designs: > > > > This is the structure: > > 1. tblFacility > > 2. tblAccount > > 3. tblBills > > > > Each facility has 1 or more accounts. > > Each account has 1 or more bills. > > > > What is the best way to create the relationships? I believe I need to > > create a junction table. > > > > If yes, will the junction table have all FKs to their PKs? > > Or should I create 2 junction tables.... #1 between Facility & Account, > and > > #2 between Account and Bills? > > > > Any advice is appreciated. > > > > Thanks, > > Tom > > > > > >
- Next message: Jeff Boyce: "Re: Setting AutoNumber back"
- Previous message: Tim Ferguson: "Re: Purchase Orders"
- In reply to: Graham R Seach: "Re: Table Design - Relationships"
- Next in thread: Graham R Seach: "Re: Table Design - Relationships"
- Reply: Graham R Seach: "Re: Table Design - Relationships"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|