944,006 Members | Top Members by Rank

Ad:
Dec 17th, 2008
0

HELP

Expand Post »
Dear Sir(s)

I currently have problems with VB6. My problem is:

I want to link data in one form with another. For example:
If someone inputs an information in a textbox in Form1, I want Form2 to be able to get the inputted information and process it.

Thanks
wookinhung
Reputation Points: 20
Solved Threads: 0
Newbie Poster
wookinhung is offline Offline
11 posts
since Dec 2008
Dec 17th, 2008
0

Re: HELP

Hi,

In Form Load of Form2, write this code:

Me.Text1.Text = Form1.Text1.Text
(Here you have to show Form2, While Form1, is still Loaded)
OR
In Lost Focus of
Form1's Text1,
Form2.Text1.Text = Me.Text1.Text
OR
Keep a Public Variable in .bas module, populate variable in Form1's Text_lostfocus event, and Access that variable in Form's Load event

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Dec 17th, 2008
0

Re: HELP

Hi Veena,

Thanks a lot! Problem solved with your help!

Regards,
wookinhung
Reputation Points: 20
Solved Threads: 0
Newbie Poster
wookinhung is offline Offline
11 posts
since Dec 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Help
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: check box and SQL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC