Results 1 to 3 of 3
  1. #1
    Eisaz is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    2

    Question Database design - connecting 2 tables

    hi all,

    I was wondering if anyone could push me in the right direction. I am making supplier/factory database.
    The database includes Supplier details as well as factory details.
    What the database need to do in general, is to create 2 separate tables where one would contain Supplier information + factory (which works with the supplier) information and second table with Factory list Info only. e.g.
    I found a way of doing it by setting the relationships between these 2 tables, the problem is, some of the suppliers work with more than 1 factory and some factories work with more than one supplier.

    Question is: Is there a way of:
    1) while inputign data in form update two tables in the same time and
    2) if the same factory is used by other supplier simply link the information by e.g. inputting the factory ID No where the information is required.



    I hope it all makes sense. I would appreciate any help.
    Thanks,
    S

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    It sounds like you need a many to many relationship, therefore you will need what is known as a junction table that contains bothe the primary keys form the suppliers table and the primary keys from the locations table.

    Then join the respective tables to the relevant fields in the junction table.

    David

  3. #3
    Eisaz is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    2
    hi David,

    Thanks a lot for you quick response. I will try to do it and let know my results.

    Regards,
    Slawek

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

Similar Threads

  1. tables design
    By luca in forum Database Design
    Replies: 7
    Last Post: 08-24-2009, 07:38 AM
  2. Database Design
    By mzrihe1x in forum Database Design
    Replies: 1
    Last Post: 06-17-2009, 09:09 PM
  3. Database Design Issue
    By joekiteire in forum Database Design
    Replies: 6
    Last Post: 02-26-2009, 04:53 AM
  4. Replies: 0
    Last Post: 02-16-2009, 08:21 AM
  5. Need help checking database design
    By abc7 in forum Database Design
    Replies: 1
    Last Post: 10-29-2007, 08:08 AM

Tags for this Thread

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