devxlogo

Retrieving a Value From an Underlying Form

Retrieving a Value From an Underlying Form

Question:
I have form that has a command button on it, and when it’s clicked, it opens another form. I want to be able to set some values on the active form based on the values of the calling form. I can’t seem to find in the Help, or any other documentation, how to retrieve a value from an underlying form.

Answer:
For this type of application, I’d suggest creating a public subroutine on the form that does the actual showing of the form. This method lets you pass data into the form before it’s shown. Just call the Show method from within the subroutine when you’re ready to display the form.

See also  5 Tips for Working With an Onsite Interpreter
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist