i have this problem
m using dataset
dataadapter and dataset
i would like to select a date range using a datetimepicker or monthcalendar. the data in my database for date is 05/01/2007 where 05 is the month and 01 is the date.
sqladapter.SelectCommand = New OdbcCommand("SELECT * from " & table & "where date between @from_date and @to_date", conn)
sqladapter.SelectCommand.Parameters.Add("@from_dat e", OdbcType.date, "date").Value = Me.DateTimePicker1.Value.ToShortDateString
sqladapter.SelectCommand.Parameters.Add("@to_date" , OdbcType.date, "date").Value = Me.DateTimePicker2.Value.ToShortDateString
i tried these codes but when was prompt error " date type cannot convert to int"
how do i solve the prob?