I have a form that when a user wants to add to the subform they press a button which opens a an "add" form to enter the new data. When the user is done and is closing the "add" form, I want to check if I need to requery the subform...but I'm gettiing an error.
Here is the code for the "Add" form OnClose
If CurrentProject.AllDataAccessPages("forms!clientform").IsLoaded = True Then
Forms!ClientForm![Medical Ins Sub Form].Requery
End If
My error highlights my IsLoaded line and reads.
Run-time Error '2467'
The expression you entered refers to an object that is closed or doesn't exist.
I know this is not the case and must be a coding error on my part... does anyone see what's wrong?
Thanks