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?
Who is Participating?
viktornetConnect With a Mentor Commented:
yes, you can do...


FormName.visible = true


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
Public function (frmName as form)
end function

All Courses

From novice to tech pro — start learning today.