Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I open a form by reference?

Status
Not open for further replies.

pistolpedro

Programmer
Dec 14, 2000
2
US
I need to open a form by referencing a variable name. I'm reading a form name into the variable "nextform".

NextForm.show

gives me an "object required" error

I've also tried

Dim myform as Form
set myform.Name = NextForm
myForm.show

gives me an "Invalid use of property" error.

Any suggestions?

Thank you
 
Dim myform as Form
set myform = form2 'actual name of form
myForm.show


David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top