Private Sub Form_Load()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType <> acLabel Then
ctl.OnGotFocus = "=AllGotFocus()"
End If
Next ctl
End Sub
Private Function AllGotFocus()
MsgBox Me.ActiveControl.Name & "=" & Me.ActiveControl.Value
End Function
作者: aslxt 时间: 2010-12-19 19:44
Private Sub Form_Current()
msgbox me.id
End Sub