in this code:

formA: with text1 and command1
Private Sub Command1_Click()
Form2.Show
End Sub

formB: with command1
Private Sub Command1_Click()
Form1.Text1.Text = "Test"
End Sub

i need to do something like this but without knowing wich form call formb and put "Test" in the form that call the formb