How do display forms generically.

I would like to add some generic code for displaying forms, in VBA i would use forms(strFormName).visible = true
where strFormName is the name of the form I would like to display.  How do I do this in VB?  Do I use the .show command?
homey_the_clownAsked:
Who is Participating?
 
viktornetConnect With a Mentor Commented:
yes, you can do...

FormName.show

or

FormName.visible = true

:)

..-=ViKtOr=-..
0
 
homey_the_clownAuthor Commented:
Used it, but.....
When I meant generically I meant passing the name of a form to which you want open, to display.
All I had to do was pass to the function the form as a variable form, and then use the aobve formname.show
i.e
Public function (frmName as form)
 frmName.show
end function


0
All Courses

From novice to tech pro — start learning today.