longestdrive
Programmer
Hi
I thought I had worked all this out.
I'm trying to do a straightforward requery of subforms in a main form. I've used this method in the past but I just can't get it to work this time.
The process so far is the user adds a new record from a pop up form. When the user clicks a button on the dialog form it runs the following code:
'closes a dialog box
DoCmd.Close
'set focus back to main project form
Forms!frm_project.SetFocus
'requery project subforms
Forms!frm_project.frm_project_measuresSummary.Requery
Forms!frm_project.frm_project_MeasuresUpdate.Requery
I'm trying to requery the two underlying subforms but access throws up the error message:
'Application Defined or object defined error'
I've tried various methods but my hair is falling out now. I'm sure it's a simple error somewhere - I just can't see it.
Any advice?
Thanks
I thought I had worked all this out.
I'm trying to do a straightforward requery of subforms in a main form. I've used this method in the past but I just can't get it to work this time.
The process so far is the user adds a new record from a pop up form. When the user clicks a button on the dialog form it runs the following code:
'closes a dialog box
DoCmd.Close
'set focus back to main project form
Forms!frm_project.SetFocus
'requery project subforms
Forms!frm_project.frm_project_measuresSummary.Requery
Forms!frm_project.frm_project_MeasuresUpdate.Requery
I'm trying to requery the two underlying subforms but access throws up the error message:
'Application Defined or object defined error'
I've tried various methods but my hair is falling out now. I'm sure it's a simple error somewhere - I just can't see it.
Any advice?
Thanks