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,
 
Back
Top