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!

Refer to calling Form

Status
Not open for further replies.

groovygarden

Programmer
Aug 23, 2001
63
Hi,

Could anyone tell me if there is a way I can refer to the form which called the active form?

Heres the problem...

Form C can be called by either Form A or Form B. If Form C is called by Form A, then I need a text box in Form C to hold the value "A". If Form C is called by Form B, then I need a text box in Form C to hold the value "B".

Hope that isn't too confusing...!

Help appreciated...
 
this is one way of doing it. have a text box on form A equal the value of what you want passed. then have a text box on form B equal that value.


frmB.textbox.text = frmA.textbox.text

you do not need to reference frmB I put it in for clarity.

good luck
mbpiper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top