H
Hugh
Hi,
I want to pass the text in the texbox on one form to the
textbox on another form. I thought it is very basic.
However, I can not do it right. It works for some
textboxes on the form but not all. What I find is that it
works if the text in the textboxes on the form1 were
entered during designing stage. It does not work if the
text is updated during program run time.
Here is my sample code:
Sub GetValueFromAnotherForm()
Dim frm1 as New Form1
me.textbox1.text = frm1.textbox1.text
me.textbox2.text = frm1.textbox2.text
End sub
The program starts with Form1 and Form2 is child form.
Thanks in advance.
I want to pass the text in the texbox on one form to the
textbox on another form. I thought it is very basic.
However, I can not do it right. It works for some
textboxes on the form but not all. What I find is that it
works if the text in the textboxes on the form1 were
entered during designing stage. It does not work if the
text is updated during program run time.
Here is my sample code:
Sub GetValueFromAnotherForm()
Dim frm1 as New Form1
me.textbox1.text = frm1.textbox1.text
me.textbox2.text = frm1.textbox2.text
End sub
The program starts with Form1 and Form2 is child form.
Thanks in advance.