Ver Mensaje Individual
  #1  
Antiguo 07-04-2008
sargento elias sargento elias is offline
Miembro
 
Registrado: mar 2008
Posts: 109
Reputación: 17
sargento elias Va por buen camino
como hacer select con un date,o otra tabla.

Buenos dias. Tengo estos dos problema.

tengo dos tablas A y B. A contiene ID y CODE y B contiene ID,IDC(foreign) y FEC.

El Primer problema es que no me filtra por fecha.El componente es un dateedit(RX).

Código Delphi [-]
If (dateven.text <> '  /  /  ') then
      begin
        if vwhe <> '' then
              vwhe:= vwhe + ' AND  FEC='+ quotedstr(dateven.text)
          else
              vwhe:= 'WHERE FEC='+ quotedstr(dateven.text);
      end;

y el segundo es que necesito que me introduzcan el CODE y sacar un listado de B enganchando la clave extranjera pero no se cómo?

MUCHAS GRACIAS
Responder Con Cita