Flash - SOLO ES UNA CONSULTA (AYUDA......).

 
Vista:

SOLO ES UNA CONSULTA (AYUDA......).

Publicado por Carolina D. (2 intervenciones) el 05/06/2008 00:52:42
Ayuda..........
Tengo esta consulta

SELECT
Tbl_Planilla.Reclamo,
IIF(Tbl_Planilla.Peticion <> 17, null, Tbl_Planilla.Peticion),
Tbl_Planilla.ValorReclamo,
Tbl_Planilla.COMER
FROM
Tbl_Clientes INNER JOIN Tbl_Planilla
ON Tbl_Clientes.codclient = Tbl_Planilla.CodClient
WHERE
(((Tbl_Planilla.Fecha) Is Not Null
And (Tbl_Planilla.Fecha) Between [Ingrese Fecha Inicial]
And [Ingrese Fecha de Cierre])
AND ((Tbl_Planilla.COMER)=Yes))
ORDER BY
Tbl_Planilla.TipoTramite

Resulta lo siguiente: necesito que me filtre del campo peticion solo los que sean con numer 17 solamente y que de reclamos los muestre todos y que en el campo COMER sea igual a YES.

LA SINTAXIS FUNCIONA PERO ME ESTA MOSTRANDO TODOS LOS QUE ESTAN MARCADOS COMO YES EN EL CAMPO COMER Y NO LOS QUIERO ASI.
SOLO QUIERO QUE APARESCAN LOS REGISTROS DE (RECLAMO) LOS DE (PETICION QUE SEAN DE NUMERO 17) Y QUE ESTOS ESTEN MARCADOS EN EL CAMPO COMER COMO YES.

Espero este claro...
Ayundenme por favor gracias............
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:SOLO ES UNA CONSULTA (AYUDA......).

Publicado por Pedro (2 intervenciones) el 05/06/2008 00:55:14
Esto es access??? no es de este foro oK... mandalo al foro de access..
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar