Hi, I hope someone can help.
I have a MainForm which I had to create instances of. I found this solution on creating instances: http://allenbrowne.com/ser-35.html and used it "successfully" up to this point.
The MainForm has a subform from which I open EditRecordonSubform form. Once the record is edited I wish to requery the subform, but Forms!MainForm!sbForm.Requery doesn't work anymore because I have to refer to a particular instance of the MainForm.
(tip: after the EditRecord form closes, the focus naturally comes back to the instance of the MainForm on which the subform that needs to be requeried sits on. Is there some way to program in vba: requery the subform of the form that now has the focus? However, I don't think this would work because the MainForm doesn't receive focus until all the code is executed from the SAVE CHANGES onclick event of the EditRecord form, correct?)
I have a MainForm which I had to create instances of. I found this solution on creating instances: http://allenbrowne.com/ser-35.html and used it "successfully" up to this point.
The MainForm has a subform from which I open EditRecordonSubform form. Once the record is edited I wish to requery the subform, but Forms!MainForm!sbForm.Requery doesn't work anymore because I have to refer to a particular instance of the MainForm.
(tip: after the EditRecord form closes, the focus naturally comes back to the instance of the MainForm on which the subform that needs to be requeried sits on. Is there some way to program in vba: requery the subform of the form that now has the focus? However, I don't think this would work because the MainForm doesn't receive focus until all the code is executed from the SAVE CHANGES onclick event of the EditRecord form, correct?)
Last edited: