Read data from sql database using datetime picker

前端 未结 5 1397
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 15:29

How to read data from database using datetimepicker value. I have a datetimepicker and a datagridview in my form. I want to get data from Sql databse table with the selected

5条回答
  •  一向
    一向 (楼主)
    2021-01-16 16:11

    this is my code its working

    oldbc.CommandText = "select * from recette where " & ComboBox1.Text & " between #" & DateTimePicker1.Text & "# and #" & DateTimePicker2.Text & "#"

提交回复
热议问题