0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by wookinhung
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.