You could also create a vaiable in Form2

Public sVal as string


then when the user clicks the datagrid on Form1:

Private Sub DataGrid1_Click()
form2.Show
form2.sVal = Form1.DataGrid1.Text
End Sub

Now you have the variable stored in sVal