|
-
Jan 19th, 2007, 11:43 PM
#1
Thread Starter
Addicted Member
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!!
-
Jan 19th, 2007, 11:47 PM
#2
Re: Text from Form to Form...??!!
VB Code:
Form2.textbox2.Text = textbox1.Text
-
Jan 19th, 2007, 11:52 PM
#3
Re: Text from Form to Form...??!!
To quick for me jcis
-
Jan 19th, 2007, 11:53 PM
#4
Thread Starter
Addicted Member
Re: Text from Form to Form...??!!
-
Jan 19th, 2007, 11:56 PM
#5
Frenzied Member
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.
 Originally Posted by anthony_pacitto3
no, it aint working ...
You might wanna try placeing the code under Private Sub Text1_Change()
Last edited by wiz126; Jan 20th, 2007 at 12:03 AM.
-
Jan 19th, 2007, 11:57 PM
#6
Thread Starter
Addicted Member
Re: Text from Form to Form...??!!
Ok, iv found it out i just had to switch the code around . Thanx
-
Jan 19th, 2007, 11:57 PM
#7
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
-
Jan 19th, 2007, 11:58 PM
#8
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.
-
Jan 20th, 2007, 12:00 AM
#9
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|