carloscharly respondió:
"SELECT * from libro where codigo=" & txtcod.Text & " and codigoper=" & txtcodper.Text & " and dia between #" & Format(CDate(txtdia), "mm/dd/yyyy") & "# And #" & Format(CDate(txtdia2), "mm/dd/yyyy") & "# order by libro.dia" Prueba ahí, también tienes...