السلام عليكم ممكن توضيح لهذا الكود مع طريقة عمل الـ For
Private Sub Text1_KeyPress(KeyAscii As Integer) If RS.State = 1 Then RS.Close RS.Open "select * from m_boocking where No_b = '" & Trim(Text1.Text) & "'", CN, adOpenStatic, adLockOptimistic If RS.RecordCount > 0 Then RS.MoveFirst Combo1.Clear For i = 1 To RS.RecordCount Combo1.AddItem RS!No_m RS.MoveNext Next i Combo1.SetFocus End If End Sub
وجزاكم الله عني كل خير

