Kod:
If Nz(DLookup("Kimlik", "Personel", "[tc]='" & Me.Metin0 & "'"), 0) <> 0 Then
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE ana SET ( tc, giris_tarih, gir_saat ) VALUES ('" & [Metin0] & "','" & Date & "', '" & Time() & "')"
DoCmd.SetWarnings True
DoCmd.Close acForm, "sifrem1"
Else
MsgBox ("Bu isimde personel yok.")
End If
End Sub