jsgs
Instructor
- Aug 22, 2008
- 47
Hi to all!
I have a form (let's say form1) with 10 command buttons on it. When I click on any one button, another form (form2 - similar to an inputbox) appears asking to input a name.
Form1 is the main form and all my code are in form1.
Form2 is just there to get the name and validate it.
Problem: I want to use the name entered in form2 in form1. I've tried writing this code in form1:
strName = forms.form2.txtName.Text
but it doesn't work.
Anyone can please help as to how this can be done? Thank you in advance.
I have a form (let's say form1) with 10 command buttons on it. When I click on any one button, another form (form2 - similar to an inputbox) appears asking to input a name.
Form1 is the main form and all my code are in form1.
Form2 is just there to get the name and validate it.
Problem: I want to use the name entered in form2 in form1. I've tried writing this code in form1:
strName = forms.form2.txtName.Text
but it doesn't work.
Anyone can please help as to how this can be done? Thank you in advance.