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 / New Users / July 2006

Tip: Looking for answers? Try searching our database.

MAKING 3 TABLES WORK TOGETHER

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
geeves1293 - 25 Jul 2006 17:12 GMT
I have a tables named Customers, Products and Transactions.

The products table is filled with all sorts of STANDARD cars.
The customers table is filled with customers (obviously).
The transaction table ties a customer to particular products (cars).

What if a customer bought a non-standard car (special like a hot rod or
something), which wasn't in my products table.   I have so far created
another table called Special_Products, but cannot seem to connect it to the
transactions table.  Below is how the transaction table looks: -

CUSTOMERID    PRODUCTID    SPECIALPRODUCTID
C001                P001
C001                P002
C002                P003
C003                Left Blank       SP001

Any ideas on this would be most appreicated.

Many Thanks
Graham
Jeff C - 25 Jul 2006 18:23 GMT
Transaction_ID = PKey Transaction Table = Autonumber
Customer_ID = PKey Customer Table = Autonumber
Product_ID = PKey Product Table = Autonumber
SProduct_ID = PKey SpecialProduct Table = Autonumber

SProduct_ID = Number Long Integer in Transaction Table and related
one-to-many to the SProduct_ID in Special Product Table

Product_ID = Number Long Integer in Transaction Table and related
one-to-many to the Product_ID in the Product Table

Customer_ID - Number Long Integer in Transaction Table and related
one-to-many to the Customer_ID in the Customer table

Try this concept
Signature

Jeff C
Live Well .. Be Happy In All You Do

> I have a tables named Customers, Products and Transactions.
>
[quoted text clipped - 17 lines]
> Many Thanks
> Graham
 
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.