08-05-14, 04:46 AM
ما هى مشكلة الطريقة ساهلة
كود :
sql1=" select * from main where num <> -11111111123
if isnumeric(textbox1.text) then sql1 =sql1 & " and num=" & textbox1.text
if text2.text <> "" then sql1 =sql1 & " and name1 like'" & text2.text & "'"
if combo1.selectindex<> -1 then sql1=sql1 & " and comp1=" & combo1.selectvalue
if combo2.selectindex<> -1 then sql1=sql1 & " and comp2=" & combo2.selectvalue
elcمن اعمالنا نخطى ومن اخطائنا نتعلم ولاشى مستحيل
