Ver Mensaje Individual
  #8 (permalink)  
Antiguo 20/10/2008, 14:38
Licantropo28
 
Fecha de Ingreso: octubre-2008
Mensajes: 12
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: Como obtener el rango entre 2 DateTimePicker?

Sustituye cmd.CommandText = "Compras"

por

cmd.CommandText= "Select * From LaTabla " & _
" Where Fecha between '" & dtpDesde.Value.ToString("MM/dd/yyyy") & _
"' And '" & dtpHasta.Value.ToString("MM/dd/yyyy") & "' Order By Fecha"

Un saludo.