 |
|
ต้องการใช้ datetime กับ textbox ในการค้นหาร่วมกันอ่ะครับ ตัว datetime ใช้ได้แล้วแต่ตัวที่จะไช้ textbox ในการกรองค้นหาเพิ่มต้องแก้เป็นยังไงครับ
Code (VB.NET)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
sql = String.Format("select idcus,docid,dgetreport,names,adtambon,adaumper,adcity,teamasset1,teamasset2,dsentreport from customer where dgetreport Between '" & dtp1.Value.ToString("yyyy-MM-dd") & "' AND '" & dtp2.Value.ToString("yyyy-MM-dd") & "' from customer where statusqc like '%" & txt1.Text & "%' ")
dgv1.DataSource = cmd_dataTable()
End Sub
Tag : .NET, VB.NET, VS 2003 (.NET 1.1), VS 2005 (.NET 2.x), VS 2008 (.NET 3.x), VS 2010 (.NET 4.x)
|
|
 |
 |
 |
 |
Date :
2018-08-27 15:41:25 |
By :
futurezax |
View :
980 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |