Text from Form to Form...??!!
yes, how would i get text from one textbox to automaticlly copy and insert the same text into a another Form. Example: I type "hello" in textbox1 which is located in Form1 then i press ''ok'' then "hello" is automatically copy and inserted into textbox2 in Form2 (kind of like duplicating the text). How would i do this? Please Help!!
Re: Text from Form to Form...??!!
VB Code:
Form2.textbox2.Text = textbox1.Text
Re: Text from Form to Form...??!!
Re: Text from Form to Form...??!!
Re: Text from Form to Form...??!!
You might want to consider declaring the variable in a module (Right click in the treeview -> add Module)
writing something like this.
and you can set what txtword is from any form.
Quote:
Originally Posted by anthony_pacitto3
no, it aint working ...
You might wanna try placeing the code under Private Sub Text1_Change()
Re: Text from Form to Form...??!!
Ok, iv found it out:) i just had to switch the code around . Thanx
Re: Text from Form to Form...??!!
you probably have different command names for the text boxes. Has to be something simple it works fine for me :)
Re: Text from Form to Form...??!!
Perhaps....
VB Code:
Private Sub Form_Load()
Form2.Show
End Sub
Private Sub Text1_Change()
Form2.Text1.Text = Form1.Text1.Text
End Sub
No buttons needed. It'll automatically copy the text to another form. :)
Re: Text from Form to Form...??!!
kk could you resolve this topic just so i don't get confused :(
And sorry that sounds like an admin which i am not :)