You did not say what you want to do in the GotFocus event but I will assume it will be the same for all Text Boxes.
The following code will pass a pointer to each text box to a common got focus event handler when each text box receives the focus.
Code:
Private Sub Form_Open(ByRef intCancel As Integer)
Dim ctl As Control
For Each ctl In Me
If ctl.ControlType = acTextBox Then
ctl.OnGotFocus = "=HandleGotFocus([" & ctl.Name & "])"
End If
Next ctl
End Sub
Private Function HandleGotFocus(ByRef ctl As Control)
MsgBox ctl.Name
End Function
Chris.