Dim yol, Dosya As String, Kyt As Recordset
yol = Me.Metin2 & "\"
DoEvents
Dosya = Dir(yol & "*.jpg")
Set Kyt = CurrentDb.OpenRecordset("Select * From Tbl_Resim")
While Dosya <> ""
Kyt.AddNew
Kyt!Res_Yer = yol
Kyt!Dosya = Dosya
Kyt!Tarih = FileDateTime(yol & Dosya)
Kyt.Update
Debug.Print Dosya
Dosya = Dir
Wend
Kyt.Close: Set Kyt = Nothing