بسم الله الرحمن الرحيم
اخواني هل هذا الكود فية خطأ
y = InputBox("Enter name,please", "search")
SQL = "select * from table1 where like name='" & y & "'"
Data1.Refresh
Data1.Recordset.FindFirst SQL
If Data1.Recordset.NoMatch Then
MsgBox " not found", vbOKOnly + vbInformation, "error"
Else
Do While Data1.Recordset.EOF = False
Combo1.AddItem Data1.Recordset![Name]
Data1.Recordset.MoveNext
Loop
End If

