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