This worked in a test:
Add the code below.
Click in a record in the sub form, click the "Save" button, then click the "Allocate" button
Code:
Private Sub CmdAllocate_Click()
On Error GoTo CmdAllocate_Click_Err
Me![frmworkOrder-SubForm2].Form!QtyUsed = Me![frmworkOrder-SubForm2].Form!QtyAllocated
Me![frmworkOrder-SubForm2].Form!QtyAllocated = 0
Me.WOStartDate.SetFocus
Me.CmdAllocate.Visible = False
Me.CmdPartsAllocated.Visible = True
' Me.CmdPartsAllocated.Left = 3168
CmdAllocate_Click_Exit:
Exit Sub
CmdAllocate_Click_Err:
MsgBox Error$
Resume CmdAllocate_Click_Exit
End Sub
BTW, the top 2 lines in EVERY code module should be
Code:
Option Compare Database
Option Explicit
You are missing the line in blue ......