الاخوة الاعزاء كيف اجعل البحث في الحقول الثلاثة في نفس الوقت
F1
F2
F3
هذا الكود للبحث في حقل واحد وهو (F1) كيف اجعل البحث في الحقول الثلاثة (F3)(F2)(F1) في نفس الوقت
السطر الاول للبحث بكامل الكلمة
السطر الثاني للبحث باول الكلمة
السطر الثالث للبحث باخر الكلمة
السطر الرابع للبحث باي جزءالكلمة
If Combo1.ListIndex = 1 Then If Option1.Value = True Then RS.Open "SELECT * FROM [workers] WHERE [f2] LIKE '" & Trim(Text77) & "'", db, adOpenStatic, adLockPessimistic End If If Option2.Value = True Then RS.Open "SELECT * FROM [workers] WHERE [f2] LIKE '%" & Trim(Text77) & "';", db, adOpenStatic, adLockPessimistic End If If Option3.Value = True Then RS.Open "SELECT * FROM [workers] WHERE [f2] LIKE '" & Trim(Text77) & "%';", db, adOpenStatic, adLockPessimistic End If If Option4.Value = True Then RS.Open "SELECT * FROM [workers] WHERE [f2] LIKE '%" & Trim(Text77) & "%';", db, adOpenStatic, adLockPessimistic End If End If