Pass Name of Form To Another Form

  • Thread starter Thread starter Nicole Richards via AccessMonster.com
  • Start date Start date
N

Nicole Richards via AccessMonster.com

I have button on my main form that when clicked, I'd like to pass the name
of the current form to the new form that will open.

Does anyone have the code that will do this??

Thanks,
Nicole
 
You can use the OpenArgs argument of the OpenForm method to set the OpenArgs
property of the form you are opening (i.e., passing a value to the form that
can be used in that form's Open event).

The Help file has an example of usage.

HTH,
 

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

Back
Top