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 / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Can't get subforms to work with one-to-many tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Rozar - 10 May 2008 00:49 GMT
Simple question, just a few tablles. The database is normalized, 2NF I
believe, but I can't get more than one relationship to show on a form.

Table1:
CustomerNumber
Name
Phone

Table2:
CustomerNumber
OrderNumber

Table3:
OrderNumber
SKU
Date

Table4:
SKU
Desc
Price

Table1 to Table2 is one-to-many
Table2 to Table3 is one-to-many
Table3 to Table4 is one-to-many
Table2 links tables 1 and 3 together

I'm trying to have one form that shows:
Table1
  Table2
     Table 3
        Table4

So that when I change the customer number, all the orders for the customer
appear, and all the skus for the selected order appear.

I can get just one one-to-many form/subform to work, but not more.

Any help is appreciated!
Douglas J. Steele - 10 May 2008 02:01 GMT
I'm not sure I understand the point of Table2. Are you saying that an order
can be shared among multiple customers? I'd think that an order would only
be for a single customer (so that you'd put CustomerNumber as a foreign key
in the Order table). However, you need another table to resolve the
many-to-many between Order and Product (one order is placed for multiple
products, one product can be part of multiple orders)

Take a look at what's in the Northwinds sample database that's installed
with Access.  Northwinds has tables Customers, Orders, Order Details and
Products. Take a look at forms Orders and Orders Subform to see how they
portray all the information using just two forms.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> Simple question, just a few tablles. The database is normalized, 2NF I
> believe, but I can't get more than one relationship to show on a form.
[quoted text clipped - 35 lines]
>
> Any help is appreciated!
 
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.