Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Re: Form
Miscellaneous
Thread ID:
00900656
Message ID:
00900674
Views:
17
You need to add public properties or public variables to your form2 and set these members from form1 before displaying it.

Load Form2
form2.PublicMember1 = YourValue
Form2.Show 1


>Hi All:
> How can I pass a value from form1 to form2.
>For example I want to pass the caption of a recordset from form1 to form1.
>Here is my code:
>Form1.Hide
>Load Form2 (Here I need to pass a value form form1)
>Form2.Show 1
>Thanks
>MA
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform