Ver Mensaje Individual
  #2  
Antiguo 26-06-2012
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Creo que estás invirtiendo el orden de : e = . En lugar de

Código SQL [-]
select * from GUARDIAS where GDNI:=DNIGUARDIA and GFECHAGUARDIA:=FECHAGUARDIA

tendría que ser:

Código SQL [-]
select * from GUARDIAS where GDNI=:DNIGUARDIA and GFECHAGUARDIA=:FECHAGUARDIA

// Saludos
Responder Con Cita