cmdDisplay_Exit:
Set Rc = Nothing
Set Db = Nothing
Dim Rs As DAO.Recordset
Dim X, ii, F, N As Integer
Dim R As String
R = "الأرقام المفقودة هي : "
N = 10850
X = DMax("tran_no", "Lost_Serial")
Set Rs = Me.Recordset
For i = 10850 To X
For F = N To X
If Rs.Fields("tran_no") = 1 Then
N = N + 1
Exit For
Else
R = R & " - " & N
ii = ii + 1
N = N + 1
End If
Next
Rs.MoveNext
Next
RR = R
Rs.Close
Set Rs = Nothing
مرفق الاستاذ @kanory
هذه الاكواد لا حاجة لنا بها اذن
بقصد هكذا
يوسف (1).mdb