Results 1 to 4 of 4
  1. #1
    znxm0i is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Location
    Oklahoma
    Posts
    11

    Sub-Form with Cascaded Records

    Okay,

    If anyone would be as kind to point me in the right direction of how to go about correctly setting up my tables/relationships for the following scenario. I have setup an access database with the following:

    TABLE: INVENTORY with following fields:
    Product ID (alpha/numeric) – primary key
    Description of Item (text)
    Category (text)
    Assignment (text)


    Price (currency)
    Setup Charge (currency)
    Oty Ordered (number)
    Qty Checked Out (number)
    Date Checked Out (date/time)
    Who Checked Out (text)
    Qty Remaining (calculated)
    Notes (text)

    TABLE: CATEGORIES with following fields:
    Category (text) – primary key

    I also have a form called Inventory Checkout containing a subform showing the checkout date, who checked out, quantity checked out and notes. But what I want to have happen is for the subform to display a cascaded list by category that when expanded it shows all of associated items for that category broken down by product id, checkout date, who checked out, quantity checked out.

    My problem is that I DO NOT know how to successfully make this happen. I have tried creating an autonumber in both the Category and Inventory tables and then linking them in a relationship via their primary keys.

    SOMEBODY PLEASE POINT ME IN THE RIGHT DIRECTION!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    This looks like 3 tables,
    tInventory
    tOrder
    tOrderDetail

    The frmOrder is the master form of tbl tOrder
    frmOrderDetail is the subForm containing items in the order taken from the inventory table.
    this is where Qty is calculated (queries)
    Parts are marked in/out

    Use the form wizard and it will ask you what you want to build your form/subform.

  3. #3
    znxm0i is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Location
    Oklahoma
    Posts
    11
    I'm not understanding??? I was able to setup my Category table so that when I open it, it shows a cascade of inventory items listed under the corresponding category by Product ID, Item Description, Category, etc. However, I don't know how to make this same table show up in my Inventory Checkout form

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in table design, set the field LOOKUP property, change DISPLAY CONTROL to combo, to the inventory table

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

Similar Threads

  1. Cascaded Multi Select List Box - Query code?
    By Torinjr in forum Queries
    Replies: 4
    Last Post: 06-29-2015, 03:26 PM
  2. Replies: 8
    Last Post: 05-10-2015, 06:24 PM
  3. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  4. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  5. Cascaded comboboxes in a form
    By luca in forum Forms
    Replies: 2
    Last Post: 11-22-2009, 05:36 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