cigarprofiler
Registered User.
- Local time
- Yesterday, 16:31
- Joined
- Mar 25, 2017
- Messages
- 32
I have a form2 that opens by clicking a button on form1. On loading form2, some VBA code is executed.
I would like to create an option to open form2 from another form, say form3, and perform a different bit of code on loading.
Is it possible to identify whether form2 is opened from form1 or form3?
What I'm looking for is something like this:
If form2 is opened from form1: do this
If form2 is opened from form3: do that
I haven't been able to find anything on this forum or Google, because I don't know what to look for. Maybe something like passing the name of the originating form to form2?
I would like to create an option to open form2 from another form, say form3, and perform a different bit of code on loading.
Is it possible to identify whether form2 is opened from form1 or form3?
What I'm looking for is something like this:
If form2 is opened from form1: do this
If form2 is opened from form3: do that
I haven't been able to find anything on this forum or Google, because I don't know what to look for. Maybe something like passing the name of the originating form to form2?
Last edited: