
Passing a Parameter to a Form whilst Opening
Quote:
>Learned Friends
>It's been a few years since I've written code so your help would be
>appreciated. I'm opening a form with:
>frmProcessAction.Show vbModal, Me
>but want to pass a parameter as well. I'm sure you used to be able to just
>add it to the list!
Nope: never in VB. A VB form will load itself when any of its methods are
called, though, so here is one possible approach
Public Sub MyShow(Mode, Parent, otherparam)
'do something with otherparam...
Me.Show Mode, Parent
And call it with Form1.MyShow vbModal, Me, 12.3 'or whatever
Jim Deutch
MS Dev MVP