|
-
October 18th, 2001, 09:30 AM
#1
Passing Data
I've 2 text boxes and 2 command buttons. I want to pass the data gather by the 2 text boxes from one command button to the other. Here is my code.
Dim Textvalue As String
Private Sub Command1_Click()
Call GetTextValue(Passedvalue)
End Sub
Private Sub GetTextValue(ByVal Passedvalue As String)
Passedvalue = (Text1.Text) & (Text2.Text)
End Sub
Private Sub Command2_Click()
Call GetTextValue(Passedvalue)
End Sub
What did I do wrong?
Thanks
Beth
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
|