Results 1 to 3 of 3
  1. #1
    joecamel9166 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    85

    Adding Parts to a Repair Order

    I am having some trouble wrapping my mind around this. Some direction would be appreciated.
    This is for my repair DB. I am trying to add parts to my repair.
    Relevant tables are as follows:
    tblUnits
    • UnitID(PK)
    • CustomerID
    • Model
    • Manufacturer
    • etc


    tblParts
    • PartID (PK)
    • PartNumber
    • Description


    tblPartlist
    • PartsUsedID(PK)
    • UnitID(FK)
    • PartID(FK)
    • Qty


    My thoughts were to have a subform bound to main form by UnitID and having a combo box on main form to select the part number, and a text box to select the qty, then display Part Number, Description, and Qty in subform.



    The only time I need to access the parts used is when I do the invoice for the order and have to show which parts and the quantity were used. Also I would like to be able to run a query on parts used in the future.

    I have been trying to figure out how to do this for the last few days, and I'm stumped.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please give us an overview of the set up in plain English.
    What is a UNIT? How does a Unit relate to Part(s)?
    Do you have a table for RepairWork or work Desciption etc?

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Put the Part Selection combo box in the subform instead of the main form, and bind it to PartID field in tblPartList. The quantity should also be entered in the subform, and bound to Qty. Both the PartID and the quantity are related to lie list of parts, so that is where they should be entered. The part description can be displayed in the subform too, if you wish.

    This arrangement is analogous to the proverbial orders - order details model that is used to explain how subforms work.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-07-2016, 05:02 PM
  2. Replies: 4
    Last Post: 01-19-2016, 01:33 PM
  3. Replies: 3
    Last Post: 08-02-2012, 11:37 AM
  4. Entering multiple parts onto an order form at once...
    By Lincoln in forum Database Design
    Replies: 8
    Last Post: 07-01-2011, 05:28 PM
  5. Adding line numbers to a purchase order report
    By jordanturner in forum Reports
    Replies: 1
    Last Post: 12-08-2010, 08:25 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