I have researched on passing values from one form to another, however I am unable to find what I am looking for.
I have a main form with information obtain from a SP with a parameter field. The second form is like a search form, which I want to fill in a field in my main form. My goal is to pass the value entered in the second form back to a textbox in the main form.
here is what i try to do and it is not working. When I step thru the code I see the field has changed however, the form does not update.
sub ...
Dim frmtemp As New Form1
frmtemp.TextBox1.Text = TextBox1.Text
Close()
I have a main form with information obtain from a SP with a parameter field. The second form is like a search form, which I want to fill in a field in my main form. My goal is to pass the value entered in the second form back to a textbox in the main form.
here is what i try to do and it is not working. When I step thru the code I see the field has changed however, the form does not update.
sub ...
Dim frmtemp As New Form1
frmtemp.TextBox1.Text = TextBox1.Text
Close()