Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13

    CNC Machine Tool Usage Database design

    I am new to Access and have been tasked with designing a shopfloor facing data entry form that does the following:

    I have 25 different machines, the most tools any machine can hold is 40 Tools; but the Tool Life for any given tool might be different, in some cases they are the same. I am trying design it as such that I don’t have to have laminated card broken down by machine with Tool life’s listed and in the event of any improvements made the projected tool life in the MachineTbl can be increased.

    The adaptability needs to be:
    1. add additional machines in the event more machines come online or more are purchased.
    2. Tool Numbers might be moved around, rare but possible
    3. Expected Tool Life values might increase or decrease based on real world results.


    At the moment I am trying to just get all my inputs structured so next:

    1. I can make a Data entry form that has the Product Line, Machine Number, Tool Number as selectable Combo Boxes.
    2. Based on what Machine Number and Tool Number is selected a box on the form would have the "Expected Tool Life" populated automatically.
    3. The user would then input what the life was if changed early and the reason for the change


    4. A "submit" button would be on the form to then populate the usage data.
    5. Which is exported via Excel to be analyzed and graph usage on monthly basis.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Can you describe Tool and Tool Life with an example? Is Tool (eg an external cutting tool) just a type of tool or is it individually identifiable?
    When a Tool on a Machine is considered "no longer usable", you remove the tool and insert/add another tool of the same type, right?
    If so, does that make the combination of Machine and Tool "type" something you need to record?
    Should Tools be more explicitly defined /named--rather than Tool1, Tool2....?

    The more info you van provide in context, the more focused the responses from readers.
    Remember, we don't know you or your business, so for us to help you, you need to educate us.

  3. #3
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    Can you upload a screenshot of your table relationships or better still upload a copy of the actual database.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    I already posted in your other thread.
    https://www.accessforums.net/showthr...786#post521786
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13
    Understood,
    The only info on the tool need is the the tool number in the machine and expected (100% usage).
    The tool type and all that is of no need in the database structure.
    On output of data entry form I would capture Date, Shift, Machine Number, Tool Number changed, Expected Tool Life, Actual Tool life.
    Selections need to dropdowns with exception of Actual Life achieved, everything else is standardized to an extent.

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    Are the Tool Names actually named Tool1, Tool2 etc...
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  7. #7
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13
    ToolSheet Dbase.zip


    Here is my database file in its current form
    I haven't had a chance to go through the links Micron sent which is my homework tonight!

  8. #8
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13
    Correct that just the Tool Pot location in each machine, and as long I can sort by machine I can identify problem machine

  9. #9
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    In order for you to be able to create a data Entry Form which allows you to select a Machine Number & Tool Number and then have the Life expectancy
    populate automatically, you first need to setup forms which allows you to keep track of which Machine Number is associated with which Tool List.

    This for would be along the lines of that shown in the attached screenshot.
    Attached Thumbnails Attached Thumbnails Tools.png  
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    Your Machinetbl is not correct.

    Look at the following Relationship Diagram which shows how all of the tables are related.

    The Colour Green in the main Form based on the tblMachines is the PK
    In the related table tblMachineNumbers the FK is coloured Green
    Attached Thumbnails Attached Thumbnails RI.png  
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  11. #11
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13
    Mike,
    That helps me a lot! I've been trying to learn by looking at some our prev databases and reverse engineer them. But as I have learned they were poorly designed as well which explains why there were always problems associated with them!

    OK so that makes sense, the relationships are as follows:???

    tblMachines to tblMachineNumbers is 1 to many
    tblMachineNumbers to tblNumberTools is 1 to many
    tblNumberTools to tblToolNumbers is 1 to many

    But the tblNumberTools is a linking table?

  12. #12
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    Here with an example of your Production Form together with the new Relationship Diagram.

    The Combobox's on the Form Cascade so when you select a Machine the Combobox for Machine Numbers
    only Machine Numbers associated with the machine will appear in the dropdown.
    The same applies for Machine Numbers to Tools
    Attached Thumbnails Attached Thumbnails Production.png   RI.png  
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  13. #13
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    tblNumberTools allows for the Many Machine Numbers can have Many Tools

    This is called a M to M relationship or 2 x 1 to Many relationships
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  14. #14
    843Hammer is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2024
    Location
    South Carolina
    Posts
    13
    Hi Mike,
    That will be enough to point me in right direction.

    Thanks alot!

  15. #15
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    No problem
    Glad to help.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-27-2019, 06:33 AM
  2. Replies: 12
    Last Post: 03-31-2014, 11:29 PM
  3. Fabrication Estimating Tool - Database Table Design
    By drow in forum Database Design
    Replies: 15
    Last Post: 04-16-2013, 04:48 AM
  4. Form design for tool store database
    By V760838 in forum Database Design
    Replies: 1
    Last Post: 02-11-2012, 08:09 AM
  5. A tool for design differen
    By kiffer in forum Programming
    Replies: 7
    Last Post: 08-02-2010, 01:14 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