Results 1 to 4 of 4
  1. #1
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    What should be the suitable design!

    Hi



    I am looking forward to record some transactions and scenario is as below;


    TblInspection!
    InspID: PK
    InspDate:
    Shift: (Day/Night)
    Inspector: FK from tblEmployees
    WorkCenter: FK from tblWorkcenters


    TblInspectionResults
    ResultID : pk
    InspID : FK (Joint)
    CartNo :
    CartType:
    Product: FK from tblProducts
    GoodQty :
    RejectQty:
    ScrapQty:

    Notes:
    - One Shift can have many carts to inspect with different products. So one to many relationship between TblInspection & TblInspectionResults.
    - Each Product have different qty on each cart to inspect (Like Product A have 20 units and product B have 30 units per cart)
    - Results can be in three categories as "GoodQty", "RejectQty" and "ScrapQty".
    Example: There can be 10 units good, 5 rejected and 5 scrapped which can be recorded against each field but the issue is to mention the reason for reject and scrap.

    May out of 5 rejected units, there is 2 units because of defectA and 3 units because of defectD and same can be in scrapped Qty.

    Requirement:

    How to make the 3rd table to link for rejected and scrapped quantities for each kind of reasons?

    Any help will be appreciated?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,413
    not sure what your problem is - if reasons are wide and varied, just include a 'reason' text field in the results table. If they are relatively limited, have a third table with a PK and those reasons and a reasonFK field in your results table. Or both if you need a reason 'type' + further explanation.

    reason textbox - 'primer showing on underside'

    reason table (PK=1) 'paint finish'

    both - PK='paint finish', explanation textbox - 'primer showing on underside'

  3. #3
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Dear Sir

    Thanks for your time.

    The problem is how to describe the rejects and scrap assigning a reason for this and as said above, the 5 rejected units can have different reasons and same scrapped units as well.

    So what should be design of tables and relationship especially for reasons?

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,413
    you need to describe your business in more detail but I would suggest in that case your table design is wrong. It should be something like

    TblInspectionResults
    ResultID : pk
    InspID : FK (Joint)
    CartNo :
    CartType:
    Product: FK from tblProducts


    TblOutcomes
    OutcomePK autonumber
    ResultFK - link to inspection results
    OutcomeType: text or numeric identifier (e.g. Passed, Reject, Scrap)
    Qty
    Reason - or reason type plus explanation as above. Would be left blank for a 'passed' outcome

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

Similar Threads

  1. Suitable way to search different recipe
    By chezster1234 in forum Access
    Replies: 2
    Last Post: 03-16-2017, 08:40 AM
  2. Design vs Article (=Design+Materials) problem
    By emihir0 in forum Database Design
    Replies: 14
    Last Post: 04-20-2015, 03:03 PM
  3. Access suitable for detailed price list?
    By Wozza in forum Access
    Replies: 3
    Last Post: 01-08-2015, 11:21 AM
  4. Help with Design
    By RachelBedi in forum Access
    Replies: 2
    Last Post: 01-24-2013, 02:44 PM
  5. Table Design -- want to avoid a design that creates blank fields
    By snowboarder234 in forum Database Design
    Replies: 4
    Last Post: 10-08-2012, 10:13 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