Accessing a form by formname?

Nirious

Registered User.
Local time
Today, 12:42
Joined
Jul 31, 2004
Messages
106
I currently am trying to do this:

dim a as form

a = me.form

I get the following error: "Invalid use of property"


Is there a function that lets you select a form using its name.
eg: makeactiveform("NameOftheForm")



Or alternatively if there is a function that gets the activeform. (it's for use in a module)

I you can help me Thank you!
 
Don't you have to SET a = Me.Form
 
Nirious said:
Is there a function that lets you select a form using its name.
eg: makeactiveform("NameOftheForm")

Code:
DoCmd.OpenForm "NameOfTheForm"

That should do the trick...
 

Users who are viewing this thread

Back
Top Bottom