Results 1 to 7 of 7
  1. #1
    Ayiramala is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    Kerala, India
    Posts
    74

    Question on stock control design

    Hi everyone,

    I am trying to create a simple, stock control and inventory database. Everything works fine, except for one thing: I have trouble including a table for 'companies'. Right now I have just 'Product_Name' as part of tblProducts, but how do I include a tblCompanies? A company can make several products, each with its own price.



    I think it will be easier if you could please take a look at the image of relationships.

    Any help is greatly appreciated.
    Attached Thumbnails Attached Thumbnails access.jpg  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You need a tCoProd table and the tCo table
    tCo has the CoID and the company data,
    the tCoProd table has the Co ID and the product and the price:

    TCoProd table
    ---------
    CoProdID (auto)
    CoID. (From tCo table)
    ProdID. (From tProduct table)
    Price

    this is a child table to tCo.

  3. #3
    Ayiramala is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    Kerala, India
    Posts
    74
    Thanks. i will include these two and see how it will go.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    One company has many products
    one product has one company
    This is a 1-to-many relationship.

    Maybe something like this?
    Click image for larger version. 

Name:	CompanyTable1.png 
Views:	15 
Size:	112.3 KB 
ID:	37692

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I'm curious...
    What is "companies" if not the supplier?
    one product has one company
    This implies that a product can't be made by more than one company/supplier, no?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Ayiramala is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    Kerala, India
    Posts
    74
    A company can make several products, a the same time the same product can be made by several companies. So it should be a many-to-many relationship.

    My mistake. I should have said it at the very beginning.

    By Unit Cost I mean purchase price of a particular item made by a certain company. The same item made by another one may have a different price. Or, the same item made by the same company but purchased at a later time may also carry a different price.

  7. #7
    istari88 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Kentucky, USA
    Posts
    13
    Try a tblCompany related to tblCompanies (1:many) and tblProducts (1:many). When a company is selected then all the products and prices change. And so for each company when selected from tblCompanies.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Stock Control
    By Hello1 in forum Access
    Replies: 3
    Last Post: 12-13-2016, 08:40 AM
  2. Stock Control Design Help
    By MCCDOM in forum Database Design
    Replies: 2
    Last Post: 03-13-2015, 03:58 AM
  3. Stock Control via Access?
    By Mr. Twig in forum Access
    Replies: 4
    Last Post: 02-03-2015, 10:15 AM
  4. Stock\inventory Control
    By tweety in forum Queries
    Replies: 51
    Last Post: 03-31-2013, 11:47 AM
  5. Invoicing with Stock Control Design ....
    By mond007 in forum Access
    Replies: 5
    Last Post: 05-23-2010, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums