Results 1 to 6 of 6
  1. #1
    undee69 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    39

    Need assistance for my inventory database

    good day again.



    I want to ask for another assistance from your guys.

    I want to create an inventory of all the items that were given to our employees and count all the given items.

    I already have the tblemployee and the items that are given to each employee. These items are divided into three Categories (tableCategory): Maintenance, Safety and Administration.

    I tried to normalize the tables and I got lost.

    So now I have a table as follows:

    tableEmployee
    EmpID: Autonumber
    FName:
    MidName:
    LastName:

    tbleItems
    ItemID: autonumber
    CatID: Number <- FK for tableCategory
    EmpID: Number <- FK for tableEmployee
    Description: Text
    Quantity: Number

    tableCategory
    CatID: autonumber
    CatName: Text

    On the employee Form, I want to show the Three Categories on separate subform and it will display all the items under Category. and beside that the quantity of the item that were given to them.

    Attached is my blank database
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Need to include the EmpID in the GROUP BY queries the subforms are based on. The tblItems doesn't have any data in EmpID field.
    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
    Based on your description of what you are trying to do, I have attached 2 jpgs.
    First to show a junction table between Items and Employees. This is used to resolve the Many Employees are assigned Many Items to become This Employee was assigned this Item on this date. Note the composite unique index to prevent assigning duplicate items to the same employee on the same date.

    Also, a possible data structure to meet your described needs.

    Items can be grouped by Category. Employees are supplied/assigned Items. An Employee may be given an AssignedQuantity of a specific Item on a particular Date (AssignedDate).

    I don't think this is Inventory Control/Management in the common use of the term.

    Good luck with our project.
    Attached Thumbnails Attached Thumbnails INVJunctionTable.jpg   InvPossibleModelForDatabase.jpg  

  4. #4
    undee69 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    39
    Thanks for the input guys

    @Orange.. In the end, I would be tracking how many of the items were given for each category that's why I'm doing this database.

    In the subforms of FrmItemsCounter, I would want the items to be shown as per category and input the given quantity to every employee.

    I am not able to enter the values in the subforms of FrmItemsCounter. that is where I am lost.. ^_^

    I would then be creating another form of the same type in which it will count all the items per Category..

  5. #5
    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
    Does your table structure look like the one I proposed?

    Work on forms and subforms after you have a design that seems to support your business needs.

    If you have used a traditional form/subform where form is the 1 side of a 1 to Many, and subform is the Many side of a 1 to Many, YOU MUST CREATE A RECORD ON THE 1 SIDE(parent) BEFORE YOU CAN ASSIGN RECORDS TO THE MANY SIDE (Child).

    You count things in queries, normally.

  6. #6
    undee69 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    39
    Thanks a lot orange ^_^ the structure works for me. I'm doing it yesterday already with some tweaking on the forms

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

Similar Threads

  1. ABC Inventory Database
    By pensacolajoe in forum Database Design
    Replies: 0
    Last Post: 09-05-2012, 02:35 PM
  2. Inventory Database Help
    By saultcollectibles in forum Access
    Replies: 3
    Last Post: 06-11-2012, 01:31 PM
  3. Inventory Database
    By roger556 in forum Access
    Replies: 17
    Last Post: 06-21-2011, 06:26 AM
  4. Simple Inventory Database
    By jculp123180 in forum Database Design
    Replies: 6
    Last Post: 05-28-2011, 12:33 PM
  5. Inventory Database
    By kram941 in forum Access
    Replies: 2
    Last Post: 11-09-2009, 04:28 PM

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