Hi OfficeGuy
I had a similuar problem, this is how I got around it
First you need to create a function in the Module tab and add the following code to it.
Now add the following code to the On Click event of the button that closes your Contract form
Code for Function
Public Function IsOpen(ByVal strFormName As String) As Boolean
'Returns True if the specified form is open in Form view.
Const conDesignView = 0
Const conObjStateClosed = 0
IsOpen = False If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView Then
IsOpen = True
End If
End If
End Function
Code for Form
PrivateSub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
If IsOpen("frmContracts") Then ' Change these to match your form names
Forms!frmContracts.Refresh
End If
If IsOpen("frmDetails") Then ' Change these to match your form names
Forms![frmDetails].Refresh
End If
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
MsgBox Err.Description
Resume Exit_cmdClose_Click
End Sub
If this doesn't do the trick then try the next option.
On Enter event for the subform add the following bit of code
DoCmd.Requery "tblContracts"
where tblContracts is the name of the table youare updating.
Hope these help.
Craig