Results 1 to 4 of 4
  1. #1
    odb2012 is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2012
    Posts
    5

    Alternate parts and releated parts from 1 table

    Hi,

    I have a table with an ID and PartNumber field.

    Parts tbl
    PartNumID PK(Auto)


    PartNumber

    Here’s some example data:
    1 M24308/2-2F
    2 M24308/4-2F
    3 ORD9F0000
    4 ORD9M0000
    5 D90000VLO
    6 D90000JOO

    How would I design the table to allow me to define alternatepart numbers and also related parts? For example:
    Record 1 is the primary part and record 3 is the alternatepart.
    Record 2 is the primary part and record 4 is the alternatepart.
    Records 5 and 6 are related parts to records 1, 2, 3 and 4.

    I have a form that allows the user to select a part and displaythe part data. But I also want the alternate parts and related parts displayedon the form, maybe in a subform with tabs. I haven’t gotten there yet because Ican’t determine the table design.

    Any ideas would be great.

    Thanks, Paul

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    First, a couple of questions:
    Do Alternate Parts and Related Parts need to exist in the Parts table?

    Or are Alternate Parts and Related Parts only relevant in the context of the 'Primary' parts to which they are either 'alternate' or 'related'?

    One possible way to do what you want is:
    1. Create a separate table in which you have a PartNumber field - [that ties to the PartNumber field in your Parts table] and a 'RelatedPart' field, and
    2. Create a separate table in which you have a PartNumber field - [that ties to the PartNumber field in your Parts table] and an 'AlternatePart' field.

  3. #3
    odb2012 is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2012
    Posts
    5
    Robeen,

    Alternate, related and primary parts are all required in "a" table.All parts have separate locations within inventory and have separatecertification paper work and must be stored separate.
    Primary and alternate parts are actually manufacture and supplier part numbersM24308/2-2F is a mill spec part number and ORD9F0000 is a supplier part number.
    Related parts are parts that can be used with each other but must be storedseparate.

    Is this thestructure for your possible way?

    AlternatePart tbl
    PartNumber
    Alternatepart

    And

    Relatedpart tbl
    PartNumber
    RelatedPart

    Would the data inthe table be the same data as in the Part tbl?

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    In your Parts Table - you would not record the Related and Alternate Parts for each PartNumber.

    In your AlternatePart Table - every PartNumber that has an AlternatePart will have to be entered.
    Same for RelatedPart Table.

    That way - if you want to find all the Related and Alternate parts for any given Part - you can query those two tables to get them.

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

Similar Threads

  1. Shading only parts of a report
    By coach32 in forum Reports
    Replies: 1
    Last Post: 11-22-2011, 02:26 AM
  2. Update product parts
    By honey2wood in forum Forms
    Replies: 17
    Last Post: 04-15-2011, 02:20 AM
  3. Need Direction Parts Form
    By Deano in forum Forms
    Replies: 2
    Last Post: 01-22-2011, 06:01 AM
  4. field parts
    By DavidAlan in forum Queries
    Replies: 3
    Last Post: 09-07-2010, 01:36 PM
  5. Find all parts in a heirarchy
    By Spiftacu1ar in forum Queries
    Replies: 1
    Last Post: 08-04-2009, 09:01 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