i have a form that is tracking some parts, and the user will enter a machine name, the new serial number that is going to be used, and the old serial that they are bringing back. What i need to do is automatically update the status of each of those serials. The table that the form is bound to is a "tool change" logging table and that is used to track all of the changes, and the status field of the serials is in a "tools" table, which is used to track information specific to the tools. So right now i am using:
Private Sub Form_AfterInsert()
[Forms]![BM & Tool Change Form v6]![Tools status out].[Form]![Status] = "Out"
End Sub
This is in the mainform and it calls a subform that changes the tools status to "out". i have another form that does the same thing but changes the status to "in". So what i get now is in the "tools" table it will create a new record with the corresponding serial number and the new status. What i need it to do is to update/edit the corresponding record and its previous status, not make a new one.
now i know that this may not be the most efficient way for this specific action but my table layout is best for the rest of the project. Thanks for the help.
Private Sub Form_AfterInsert()
[Forms]![BM & Tool Change Form v6]![Tools status out].[Form]![Status] = "Out"
End Sub
This is in the mainform and it calls a subform that changes the tools status to "out". i have another form that does the same thing but changes the status to "in". So what i get now is in the "tools" table it will create a new record with the corresponding serial number and the new status. What i need it to do is to update/edit the corresponding record and its previous status, not make a new one.
now i know that this may not be the most efficient way for this specific action but my table layout is best for the rest of the project. Thanks for the help.