troubleshooting Question

getting public property from subform

Avatar of developingprogrammer
developingprogrammer asked on
Microsoft Access
5 Comments2 Solutions575 ViewsLast Modified:
hey guys,

i have a form with a public property called OpenArgsChildDictionary.

any form that wants to access it can just called Form_MyForm.OpenArgsChildDictionary no problem

however, when i use this form as a sub form, i cannot access the OpenArgsChildDictionary anymore.

i'm quite sure the explanation behind it is - the parent form is housing an instance of the sub form - and thus when i just use Form_MyForm.OpenArgsChildDictionary, it doesn't work anymore because it is accessing the code behind instance if the form is just opened as a top level form.

so i know how to access controls on the subform --> simply ParentForm.SubContainer.SubForm.txtMessage

but how do i reference the code behind of a subform? that really beats me now ha.

help help guys!! thanks!! = ))
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros