Lıke Operatörü - Baskı Önizleme +- AccessTr.neT (https://accesstr.net) +-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html) +--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html) +--- Konu Başlığı: Lıke Operatörü (/konu-like-operatoru.html) |
RE: Lıke Operatörü - H@K@N - 24/03/2022 (24/03/2022, 16:40)berduş yazdı: Sadece başlangıcı mi uyacak? Üstad olmadı yine .... ile başlayan her kaydı getir. Re: Lıke Operatörü - berduş - 24/03/2022 ara butonunun kodunu aşağıdaki gibi düzenleyip dener misiniz?
RE: Lıke Operatörü - H@K@N - 25/03/2022 Aşağıdaki kod ile sorun çözülmüştür. If Len(Trim(TextBox1.Value & vbNullString)) > 0 Then strSorgu = strSorgu & " AND personel.sicilno LIKE '" & TextBox1.Text & "%'" End If AÇIKLAMA: ------------ If Len(Trim(TextBox3.Value & vbNullString)) > 0 Then Bu kod textbox dolu ise strSorgu = strSorgu & " AND personel.ad='" & TextBox3.Text & "'" Else Bu kod textbox dolu değil ise strSorgu = strSorgu & " AND personel.ad LIKE '" & TextBox3.Text & "%'" End If Kod aşağıdaki gibi değiştirildi. If Len(Trim(TextBox3.Value & vbNullString)) > 0 Then strSorgu = strSorgu & " AND personel.ad LIKE '" & TextBox3.Text & "%'" End If |