Ver Mensaje Individual
  #1  
Antiguo 30-06-2014
maxi915 maxi915 is offline
Miembro
NULL
 
Registrado: jul 2011
Posts: 63
Reputación: 13
maxi915 Va por buen camino
ayuda con where anidado?

hola gente una vez mas problemitas de sintaxis. Aunque esta vez no se si es posible realizar esto.

necesito obtener un campo, cuando 2 variablas sean iguales a esos 2 campos, esto es lo que intente hacer, creo que se entiende mas la idea leyendo el codigo, gracias!!

Código Delphi [-]
Procedure capturar_Turno (Queryturno:TADOQuery; horario:string; dia:string; var id_turno:Integer; var disponibilidad:Integer);

begin
  with Queryturno do
   begin
     SQL.Clear;
     SQL.Add('Select * From turnos Where horario='+QuotedStr(horario)+',dia=' +QuotedStr(dia));
     Open;
     id_turno:=FieldByName('Id_turno').AsInteger;
     disponibilidad:=FieldByName('disponibilidad').AsInteger;
   end;
end;
Responder Con Cita