I didn't realise this would be so awkward but seems quite trivial to accomplish.
I need to pass a parameter from Form1 to Form2 and execute code before or during the load event.
On form2 I have a list box to populate dependant on the parameter provided from form1.
There seems to be many references to this in Google but trusting this site would rather the opinion of our members instead.
Pass Parameter Before Load Event - VB6
-
- SilverLounger
- Posts: 1728
- Joined: 25 Jan 2010, 08:34
- Location: Stoke on Trent - Staffordshire - England
Pass Parameter Before Load Event - VB6
Cheers ...
Dave.
Dave.
-
- Her Majesty
- Posts: 499
- Joined: 19 Jan 2010, 07:13
Re: Pass Parameter Before Load Event - VB6
As long as form2 isn't a subform, you can pass the parameter to the Form Open event, store it in a module level variable if you want to use it later, and use it to set a value in the Open event.
Charlotte