Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/02/2011, 07:37
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 9 meses
Puntos: 39
Respuesta: Qué tengo que hacer para que me seleccione todos los datos en esta consult

Te recomiendo hacerlo de esta forma:
Código SQL:
Ver original
  1. SELECT FECHA, MONTH(FECHA) AS MES, [CÓDIGO PS], PROVEEDOR, SUM([KG MS NETOS]) AS [SumaDeKG MS NETOS]
  2. FROM [qry_Proveedor VS Kg MS (I)]
  3. GROUP BY FECHA, MONTH(FECHA), [CÓDIGO PS], PROVEEDOR
  4. HAVING FECHA BETWEEN [introducir: fecha inicio] AND [introducir: fecha fin]
  5. AND ([CÓDIGO PS]=[introducir: 001, 002, etc] OR [introducir: 001, 002, etc] = 'VALOR POR DEFECTO')
__________________
No repitamos temas, usemos el Motor de busquedas
Plantea bien tu problema: Ayúdanos a ayudarte.