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!

Get form name

Status
Not open for further replies.

idono

Technical User
Jan 16, 2002
71
US
Hello all,
I'm trying to get the name of the form that opened the current form. I've tried the me.parent.name unsuccessfully. Anyone have some suggestions. Is it possible?

Dugger
 
That is information that is not available. However, you can make it available by either storing the name in a global variable which would be available from the next form, or you can pass the name of the previous form using the OpenArgs parameter of DoCmd.OpenForm.

DoCmd.OpenForm "frmNextForm", , , , , , Me.Name

From the new form you'd look at Me.Openargs

Dim LastForm as String
LastForm = Me.OpenArgs "The Key, The Whole Key, and Nothing But The Key, So Help Me Codd!"
 
I knew it could be done. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top