استخدم هذا الكود .....
Dim c, i
c = DCount("[المعرف]", "daraga")
DoCmd.GoToRecord , , acFirst
For i = 1 To c
If IsNull(Me.Date1) Or IsNull(Me.date2) Then Exit Sub
Me.age = CalcAge(Me.Date1, Me.date2)
Me.tdate = CalcAged(Me.Date1, Me.date2)
Me.tmonth = CalcAgem(Me.Date1, Me.date2)
Me.tyear = CalcAgey(Me.Date1, Me.date2)
DoCmd.GoToRecord , , acNext
Next i
MsgBox "تم الحساب", vbInformation + vbMsgBoxRight, "حساب"