Hey guys,
I have two forms. I want to take two numbers from one form and place them on another form...Any ideas on how to do it?
Any would be great...
Darcey_123 :wave:
Printable View
Hey guys,
I have two forms. I want to take two numbers from one form and place them on another form...Any ideas on how to do it?
Any would be great...
Darcey_123 :wave:
Precede the formname on the assignment statement.
VB Code:
form2.f2name.text = form1.f1name.text
'In Module Declare Two Variables as
global n1 as string , n2 as string
'In First Form
Private Sub Command1_Click()
n1 = Text1.Text
n2 = Text2.Text
End Sub
'in Second Form
Private Sub Form_Load()
Text1.Text = n1
Text2.Text = n2
End Sub
Your Problem Will be Solved