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

Transferring from one form to another

Status
Not open for further replies.

Maxi15

Programmer
Feb 24, 2004
5
US
i have a form that has 4 text boxes, i want the information that the user enters which is string, to appear in another form for example after the user enters the information i want to have a button that says okay and when the user presses enter i want another form to appear with four labels that have the information that the user entered in the last form

please help me
 
In the button click sub, include code to complete the following:

load form2
form2.label1.caption = text1.text
form2.label2.caption = text2.text
form2.label3.caption = text3.text
form2.label4.caption = text4.text
form1.hide
form2.show
unload form1

You will have to change the names above to match the names of your forms and labels/boxes.

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top