Results 1 to 5 of 5
  1. #1
    connorwilliamsm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    2

    Trouble understanding the logic behind database structure

    I am new to Access, and I have been having trouble setting up my database. I am trying to make a database to track Job, order, and material information for a relatively small business. The general idea of what I want to be able to track is, "PM ordered (part #s) from (supplier) on (order date)." Then I want to be able to track when we received the parts and put them on our shelves, "(part #s) received on (date), checked in by (employee), placed in (part location)." And finally, to track when those parts are used, "(part#s) used/taken on (date) by (employee) for (job #)."

    Here is a picture of my "relationships" diagram to show what I have so far:
    Click image for larger version. 

Name:	databasedesign.jpg 
Views:	12 
Size:	64.8 KB 
ID:	29846
    I would have to make tables that include fields for a material check in and a material pull out right? I am just a little lost at this point. Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    IMHO, manufacturing (assembly) type of database is one of the more complicated to build. It has been discussed numerous times in forum.

    PurchaseOrderItems is the material in data. Now to track parts used for a job work order. Do you really need to tie purchase orders to Jobs? Or just have a JobParts table that draws from parts inventory.
    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
    connorwilliamsm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    2
    Quote Originally Posted by June7 View Post
    IMHO, manufacturing (assembly) type of database is one of the more complicated to build. It has been discussed numerous times in forum.

    PurchaseOrderItems is the material in data. Now to track parts used for a job work order. Do you really need to tie purchase orders to Jobs? Or just have a JobParts table that draws from parts inventory.
    My original thought was to be able to run queries where I could request a list of jobs that used a certain part number. Also to be able to request a list of parts that have already been ordered for a specific job. I guess that is why I tied jobs to POs.. but like I said, I am new to Access and not really sure the correct way to go about it.

  4. #4
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    where I could request a list of jobs that used a certain part number
    If tblParts is akin to inventory, it doesn't belong with tblJobs. Inventory is one entity, jobs are another. To query like this would require tblJobParts where JobID 456 shows up 10x if it requires 10 parts. You would index these fields as a pair so that the same JobId and part number cannot appear more than once - provided you are not trying to break out parts on a per task basis (e.g. qty 10 of 5874 required for one phase, but 20 more for another phase. In that case, the parts become related to the task, not the job. You can relate the PartID to the inventory table to see if the quantity in stock is sufficient, as well as query "backwards" through tblJobParts for a list of jobs related to a part id.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    As june said Inventory/stock control is not trivial.
    Here is some info re database design and planning that may help with concepts.

    You may get some ideas from this youtube video

    Make a model and test it before getting too deep into physical database.
    Good luck.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-14-2015, 06:55 AM
  2. SQL Query - Understanding the logic.
    By BayEnder in forum Access
    Replies: 2
    Last Post: 02-17-2013, 12:45 PM
  3. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  4. trouble understanding expression
    By mejia.j88 in forum Queries
    Replies: 4
    Last Post: 02-01-2012, 03:00 PM
  5. Split database logic
    By Overdive in forum Database Design
    Replies: 3
    Last Post: 02-05-2010, 08:22 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