Private Sub 工号_AfterUpdate()
' 查找与该控件匹配的记录。
Dim rs As Object
Set rs = Me.Recordset.Clone
If Not IsNull(Me![工号]) Then
rs.FindFirst "Table!emplyee.[姓名] = " & Str(Me![工号])
Me.Bookmark = rs.Bookmark
Else
MsgBox "请输入工号!", 48, "警告"
End If
Me.姓名.Visible = False