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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object name

Status
Not open for further replies.

jamsek19

Programmer
Feb 4, 2002
35
SI
Hello.
Is it possible to get in one object the name of object who load him.
Example.
I have Form1, Form2 and Form3. In Form3 I want to know who load Form3: Form1 or Form2?
Thanks
Andrej
 
One way that you could do this is for the loading program to put its own name in the Tag property of the form.

For example, the following is the code from Form1.

Sub <whaterever>

Load Form2
Form2.Tag = Me.Name

End sub

Now, any other form can look at Form2.Tag and see the Name of the form from which Form2 was loaded
Good Luck
------------
Select * from Users where Clue > 0
0 rows returned
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top