How to always get the top level form reference, when calling from any subform/subform...



Hi there. Here's an Access question about forms

Say, you have a form with one subform control, which also contains another subform control, which also contains another subform

-- Subform1
-- -- Subform2
-- -- -- Subform3

I' m trying to create a function with a loop going upwards in the hierarchy, that when passed a reference of a control contained in any of the subforms, it always returms a reference to the top level Form, no matter in which subform the function call is made (either in Subform1, Subform2 or Subform3).

No luck so far. And no such code in any dev site. Can you help please?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question