Results 1 to 3 of 3
  1. #1
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114

    Need help creating relationships between tables.

    Hi there,



    I'm a Tech writer, who last used Access XP a VERY long time ago. I've been tasked with creating an Access DB project involving inventory for my boss.

    I've spend two months creating in Excel (per the boss) the main table. I've imported the information into Access and created five very pretty tables (company p/n, p/n description, categories, vendor p/n, vendor components, company p/n descriptions).

    I'm trying to establish relationships between the tables, each has a primary key field (Index set to "Yes, no duplicates"). I can establish a one-to-one relationship with the drag and drop method, but when I try to establish a one to many relationship from one table to the next, I get a one to one relationship. How do I get a one to many relationship?


    Steps taken:

    1. Drag ID from one table to the next.
    2. In the Edit relationships box comes up, I click the 'Enforce...' check box.
    3. Click the Join Properties button and select option 3 and click OK.
    4. At the Edit Relationships screen, and press the Create button.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I see 6, not 5, table names.

    What are the PK/FK fields in each table?


    Advise no spaces and special characters/punctuation (underscore is exception) in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Further to June's comment, spreadsheet and database are different animals. Each tables is about 1 subject; they are related based on Business rules (too many people think they can make up relationships at will).

    Consider (remove space and special characters from names)
    companyPartNo, PartNoDescription, Categories, VendorPartNo, VendorComponents, CompanyPartNoDescriptions

    --readers (and you) need a brief description of what these things represent-sufficient to know something is in 1 table and not possibly in another, or 2 or 3
    --it would be helpful to readers, and critical to you, to know in simple business terms where this things fit. A description of a typical day at the office will do wonders to communicate your ebnvironment to others.


    I see CompanyPartNo - but I have to ask what is Company and how does PartNo fit? Or is it Part and PartNo is an attribute of Part.
    A company builds 1 or many PartNos (Parts)
    1 Part may be built by 1 or more Companies
    so it appears to be a potential Many to many relationship. This situation is resolved by a Junction table.

    It seems PartNoDescription could be PartDescription
    Categories is extremely generic, but will have meaning in your context once that is established
    VendorPartNo -- again I see Vendor and Part perhaps masking another entity/table??
    Vendor (Seller of your Parts??, or Supplier to your company??)

    VendorComponents --- seems like various assemblies of Parts, each of which may be sold as a unit
    So it's like Bicycle with wheels, tires, spokes, hubs...?

    Have to go at the moment , but food for thought.

    Good luck.

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

Similar Threads

  1. Replies: 18
    Last Post: 06-19-2013, 10:58 AM
  2. Creating Relationships between tables
    By jesterling in forum Access
    Replies: 2
    Last Post: 10-30-2012, 11:06 PM
  3. Replies: 3
    Last Post: 11-09-2011, 02:29 PM
  4. Replies: 1
    Last Post: 07-27-2010, 08:02 AM
  5. Creating Relationships and Queries
    By nacho in forum Database Design
    Replies: 4
    Last Post: 04-16-2010, 03:22 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