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)