Results 1 to 8 of 8
  1. #1
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39

    update record via form

    First let me start by thanking everyone that has helped me with this every grown task I have been assigned.

    I can almost see the light at the end of the tunnel.

    I had a meeting today to go over it, since I thought we were finished and guess what I heard.... Can we add this, can you make it do that, etc...

    This data base keeps tracks of our Engineering Molds (The request to use them and the maintenance done on them)

    Here is a sample of my current DB:

    Molds
    Mold_no (PK)
    Part_Name
    Part_No

    MoldReq
    Work_Ord (PK)
    Mold_No (FK)
    Req_Comments

    MoldLog
    Log_ID(PK)
    Work_Ord (FK)
    Log_Comments


    They now want to keep track of the status of the mold. Which can be:
    Ready for Production (Mold sitting on the shelf somewhere)
    Needs Maintenance


    Being Repaired
    Being Revised
    In Process/Production (Being used somewhere)

    I was thinking instead of creating another table called MoldStatus I would just add a new column to the Molds Table called status.
    When the user fills out the Mold Req Form they can set the status to "In Process/Production".

    After that mold is used it goes to our tooling Department for maintenance and which time they would change the status to one of the other options on their Mold Log Form.

    All of this also need to be reportable, ie...Which molds are in Prodcuction, etc...

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Sounds like you have the right idea; a field in the mold table to store its current status, and a table for the status choices.

    By the way, this:

    Can we add this, can you make it do that, etc...

    Is what we call "job security".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by pbaldy View Post
    Sounds like you have the right idea; a field in the mold table to store its current status, and a table for the status choices.

    By the way, this:

    Can we add this, can you make it do that, etc...

    Is what we call "job security".
    You data base people call it job security, I call it frustration

    So back on topic.
    So I create a new table.(did I mention this started off as a two table db and now I am up to 9 )

    MoldStatus
    Status_ID (PK)
    Status_Type


    I would then add a foreign key "Status_Type" to the MoldReq table and the the MoldLog table.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    First, I would store the ID value in other tables, not the text. Second, the only table I'd expect to see the status in would be the table that holds the information about the mold. Status is an attribute of the mold. That is unless one of those other tables is like a history of what was done with the mold, and you wanted the status at each step as part of the history.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    We need to track it at each stage. For example if the molding department tries to pull a mold that is in a Repair status they will get some sort of error.

  6. #6
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Had another meeting today. Here is what was discussed.

    The possible statuses are:
    1. In Process/Production (It is being used by the plastics department)
    2. Being Repaired
    3. Being revised
    4. Needs Maintenance
    5. Ready for Production (Sitting on a shelf waiting to be used)

    So now when they plastics department fills out the MoldReq form there should be a spot that lets them select “In Process/Production”. If something happens and they need to stop they can go in and change it to “Needs Maintenance”.

    Once the Tooling department receives the Mold they open their MoldLog form and change it to “Being Repaired” or “Being Revised”. Once they are done they can then set the status to “Ready for Production”.

    The plastics department should also not be able to select any mold to use unless it is in a “Ready for Production” state.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Maybe an app mine is similar. It's for vehicle maintenance, and includes a repair order table. That table has a status field, which they can change as appropriate. I also have an audit table which keeps track of any changes in the status. I add a record for each change with a function:

    Code:
    Public Function InsertAudit(RONum As String, ROStatus As String, UserName As String) As Boolean
    
      CurrentDb.Execute "INSERT INTO tblROAudit(RONum, ROStatus, ActionDateTime, UserName) " _
                      & "VALUES('" & RONum & "', '" & ROStatus & "', Now(), '" & UserName & "')"
    
    End Function
    In your case I see the status field in the molds table. You can certainly add a test so users can only select a mold if it has a certain status.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by pbaldy View Post
    Maybe an app mine is similar. It's for vehicle maintenance, and includes a repair order table. That table has a status field, which they can change as appropriate. I also have an audit table which keeps track of any changes in the status. I add a record for each change with a function:

    Code:
    Public Function InsertAudit(RONum As String, ROStatus As String, UserName As String) As Boolean
    
      CurrentDb.Execute "INSERT INTO tblROAudit(RONum, ROStatus, ActionDateTime, UserName) " _
                      & "VALUES('" & RONum & "', '" & ROStatus & "', Now(), '" & UserName & "')"
    
    End Function
    In your case I see the status field in the molds table. You can certainly add a test so users can only select a mold if it has a certain status.
    Only stuck the status field there because I wasn't sure where else to put it, so if it is easier to accomplish this I am up for ideas. Functions might be a little out of my grasp right now

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

Similar Threads

  1. Update record form
    By Stika in forum Forms
    Replies: 3
    Last Post: 12-16-2012, 02:54 AM
  2. Replies: 2
    Last Post: 10-10-2012, 07:01 AM
  3. How quickly does a Form record update?
    By JRINC in forum Forms
    Replies: 3
    Last Post: 10-12-2011, 02:19 PM
  4. same form for new and update record
    By lizu in forum Forms
    Replies: 3
    Last Post: 06-20-2011, 08:34 AM
  5. Update new record when leaving form
    By jpkeller55 in forum Access
    Replies: 6
    Last Post: 09-08-2010, 06:35 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