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

Determining which form has called it. 1

Status
Not open for further replies.

Jasonic

Technical User
Jun 20, 2001
69
GB
I have a main splash screen which depnding upon the button clicked will open a form. Once I have open the called form I need to check which form has opened it.

Reason:- The called form is called in two places and either updates data or inserts data, so I need to determine from where it was called in order to either create a new record or update a record......

Thanks in advance
for your prompt response :)
Jason Thomas
SMI Solutions Ltd
 
You can use the 'openargs' to pass information to the form you'opening.
 
Yes, as japyy says, you can use the OpenArgs argument of the OpenForm command. Just stick in the name of the form in this argument in the code that opens the form. Then in the newly opened form, refer to Me.OpenArgs to retrive the name of the form that opened it. Alex Middleton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top