It's better practice to use a private property of a form then a global variable. I would add the following code to Form2.
VB Code:
Option Explicit
Private mbPressed As Boolean
Private Sub Command1_Click()
mbPressed = True
End Sub
Private Sub Form_Activate()
mbPressed = False
End Sub
Public Property Get Button1Pressed() As Boolean
Button1Pressed = mbPressed
End Property
Public Property Let Button1Pressed(ByVal bTF As Boolean)
mbPressed = bTF
End Property
And the code in Form1 would be something like
VB Code:
If Form2.Button1Pressed Then
Text1.SetFocus
End If
Note that Button1Pressed will maintain its value even if Form2 is unloaded.