P
Pete Davis
I have 3 forms. let's call them:
FormA, FormB, and FormC.
FormB is a sub form of FormA.
FormC is opened from a button on FormB. When FormC is closed, I want to
requery a control on FormB. How do I do that?
I tried Forms("FormB")!MyControl.Requery
This doesn't work. Access says: Microsoft Access can't find the form 'FormB'
referred to in a macro expression or Visual Basic code.
I've tried variations, but no matter what I do, I can't seem to get to the
control. I tried:
Forms("FormA").Controls("FormB")!MyControl.Requery
Forms("FormA")!FormB!MyControl.Requery
Forms("FormA").Controls("FormB").Controls("MyControl").Requery
Any ideas?
Thanks.
Pete
FormA, FormB, and FormC.
FormB is a sub form of FormA.
FormC is opened from a button on FormB. When FormC is closed, I want to
requery a control on FormB. How do I do that?
I tried Forms("FormB")!MyControl.Requery
This doesn't work. Access says: Microsoft Access can't find the form 'FormB'
referred to in a macro expression or Visual Basic code.
I've tried variations, but no matter what I do, I can't seem to get to the
control. I tried:
Forms("FormA").Controls("FormB")!MyControl.Requery
Forms("FormA")!FormB!MyControl.Requery
Forms("FormA").Controls("FormB").Controls("MyControl").Requery
Any ideas?
Thanks.
Pete