17-12-19, 03:17 PM
(آخر تعديل لهذه المشاركة : 17-12-19, 03:26 PM {2} بواسطة asemshahen5.)
PHP كود :
Dim dt As New DataTable
Dim da As New SqlDataAdapter
Dim searchDate1 As Date = DateTimePicker1.Value
Dim searchDate2 As Date = DateTimePicker2.Value.AddDays(1)
dt.Clear()
da = New SqlDataAdapter("select DISTINCT[Patient_Code],[RegistrationDate],[ResultDate],
[PatientName] from Analysis_Table WHERE
ResultDate >= '" & searchDate1.Year & "/" & searchDate1.Month & "/" & searchDate1.Day & "'
and ResultDate <= '" & searchDate2.Year & "/" & searchDate2.Month & "/" & searchDate2.Day & "'", connSQL)
da.Fill(dt)
DataGridView1.DataSource = (dt)
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
