Private Sub Form_Close()
If Me.Dirty Then DoCmd.RunCommand (acCmdSaveRecord) ' save the record
DBEngine.Idle dbRefreshCache 'supposed to force a write of the record
DoEvents
DoEvents
Forms!frmentry.Visible = True
[Forms]!frmentry!frmEntrySub.Form.Requery ' none of thes work or throw an error
[Forms]!frmentry.frmEntrySub.Requery
Forms![frmentry]![frmEntrySub].Requery
[Forms]!frmentry!frmEntrySub.Form.Requery
End Sub
Drives me crazy that there are multiple ways to refer to subform objects. I have tried change the name of the subform control so it is different from the name of the subform and nothing seems to work.