Associate
- Joined
- 11 Nov 2006
- Posts
- 549
- Location
- Devon
Im creating an application for an assignment and having some troubles and its getting me stressed cause i know its simple.
This is the problem:
On form1 there is a text box where the user enters their name, this text box is called txtNameenter. Then on form3 there is a label this is called lblNamedisplay. Basically i want the name that is entered on form1 to be displayed in the label on form3. This can either be on the press of a command button or it can just be displayed when form3 is displayed.
I have tried the following
Without the command button, code entered into lblNamedisplay:
Private Sub lblNamedisplay_Click()
lblNamedisplay.Caption = Form1.txtNameenter.Text
End Sub
Trying with command button:
Private Sub cmdGenerate_Click()
lblNamedisplay.Caption = Form1.txtNameenter.Text
End Sub
Neither work, can someone please help me out cheers!!!
This is the problem:
On form1 there is a text box where the user enters their name, this text box is called txtNameenter. Then on form3 there is a label this is called lblNamedisplay. Basically i want the name that is entered on form1 to be displayed in the label on form3. This can either be on the press of a command button or it can just be displayed when form3 is displayed.
I have tried the following
Without the command button, code entered into lblNamedisplay:
Private Sub lblNamedisplay_Click()
lblNamedisplay.Caption = Form1.txtNameenter.Text
End Sub
Trying with command button:
Private Sub cmdGenerate_Click()
lblNamedisplay.Caption = Form1.txtNameenter.Text
End Sub
Neither work, can someone please help me out cheers!!!