Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/03/2005, 14:11
Avatar de AlZuwaga
AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
Jojojo.. detecté un error en mi código ("creo" que nada que a vos te afecte, carlunchos)


SQL = "SELECT * FROM Viat WHERE (((Viat.ID_Persona)=" & ID_Persona & ") AND ((Viat.PartidaFecha)<#" & PartidaFecha & "#) AND ((Viat.RegresoFecha)>#" & PartidaFecha & "#)) OR (((Viat.ID_Persona)=3) AND ((Viat.PartidaFecha)<#" & RegresoFecha & "#) AND ((Viat.RegresoFecha)>#" & RegresoFecha & "#))"


Debería ser..

SQL = "SELECT * FROM Viat WHERE (((Viat.ID_Persona)=" & ID_Persona & ") AND ((Viat.PartidaFecha)<#" & PartidaFecha & "#) AND ((Viat.RegresoFecha)>#" & PartidaFecha & "#)) OR (((Viat.ID_Persona)=" & ID_Persona & ") AND ((Viat.PartidaFecha)<#" & RegresoFecha & "#) AND ((Viat.RegresoFecha)>#" & RegresoFecha & "#))"


Menos mal que todavía no lo comenzaron a usar
__________________
...___...