Private Sub 出生日期_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next '有错误发生时继续执行
If KeyCode = 13 Then
'如果按下回车键
If Me.Recordset.AbsolutePosition + 1 = Me.Recordset.RecordCount Then
如果到了最后一条记录
DoCmd.GoToRecord , , acNewRec '生成一条新的空记录
Me.姓别.SetFocus
Else
'否则移动到下一条记录
Me.Recordset.MoveNext
Me.姓别.SetFocus
End If
End If