Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
sql = String.Format("select bankmain,nsatabun,dgetreport,names,docid,dassetraka,adtambon,adaumper,adcity,typepro,getrai+getngan+gettatava1+gettatava2,rakateedin,rakasps,rakaall,teamasset1,sakagrow,statusqc from customer where dgetreport Between '" & dtp1.Value.ToString("yyyy-MM-dd") & "' AND '" & dtp2.Value.ToString("yyyy-MM-dd") & "' AND statusqc like '%" & txt1.Text & "%' ")
dgv1.DataSource = cmd_dataTable()
End Sub
Tag : .NET, VB.NET, VS 2008 (.NET 3.x), VS 2010 (.NET 4.x), VS 2012 (.NET 4.x)