Store it in the form's Tag property. For example, make a Form with a CommandButton on it.
On Form2, make another CommandButton and put this code in it.Code:Private Sub Command1_Click() Form2.Tag = "C:\MyFile" Form2.Show End Sub
Code:Private Sub Command1_Click() Print Me.Tag End Sub




Reply With Quote