Hi manndo
A new or changed record in a form (or subform) will not be saved until one of the following happens:
- the focus moved to another record in that form
- or the form is closed
- or the record is explicitly saved
Your subform control is losing the focus when you click on the main form button, but this is not moving the subform to a different record, so none of the above events is happening.
I suggest you use the Exit event of the subform control to force a save:
Private Sub YourSubformControl_Exit(Cancel As Integer)
On Error Resume Next
With YourSubformControl.Form
If .Dirty Then .Dirty = False
End With
End Sub
Good luck!
--
Graham