Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
names.Text = cbb1.Text
sql = "select CERTIFICATE,NAME,TOTALPRICE from TBL_POLICY_SUCCESS where STATUS_REPORT1 = '" & cbb2.Text & "' AND TBL_POLICY_SUCCESS.USER_ASSess = '" & cbb1.Text & "' AND TBL_POLICY_SUCCESS.SENT_REPORT_DATE like '" & dtp_1.Value.ToString("yyyy-MM-dd 00:00:00.000") & "' "
DGV1.DataSource = cmd_dataTable()
End Sub
อันนี้ข้อมูลใน ฐานข้อมูลกำหนดเป็น datetime
Tag : .NET, VB.NET, VS 2003 (.NET 1.1), VS 2005 (.NET 2.x), VS 2008 (.NET 3.x)