Pelo q entendi vc quer q aceite somente números e depois, ao teclar ENTER, o código seja salvo... bom tenta assim, usando 2 eventos:
Private Sub txtCPF_KeyPress(KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) and KeyAscii <> 8 Then
msgbox "Digite apenas números por favor!!"
KeyAscii = 0
Exit Sub
End If
End Sub
Private Sub txtCPF_KeyUp(KeyCode As Integer, Shift As Integer)
IF KeyCode= VbKeyReturn then
'SEU CÓDIGO PARA SALVAR O REGISTRO NO BD
ENDIF
End Sub
t+