kjv1611,
Thank you so so much for advice!
Actually I was considering some of those ideas but not the last one which is the most interesting to me and sure I'm going to try it.
But let me say something pretty weird is happening now. I already was able to design this report. It was on design mode. It was asking me for parameters' value for about 4 times. When I canceled it, suddenly it showed me the crosstab query fields. Well, I was excited and everything seemed to be OK.... I ran the report and put the first day of this month on the range and it worked fine. Then I put the second day and then I got the message of: "The Microsoft Jet database engine does not recognize " as a valid field name or expression." It was the same for the third day of the month.
What's going on?. How is it possible to be working just for the first day of the month and not for the rest?... There's not big deal because this report will be generated for a range of dates of course but it could be useful also for a same date.
Here's SQL statement:
PARAMETERS [Formularios]![RANGO]![DEL] DateTime, [Formularios]![RANGO]![AL] DateTime;
TRANSFORM Sum([ENCABEZADO VENTAS DIARIAS Consulta].IMPORTE) AS SumaDeIMPORTE
SELECT [ENCABEZADO VENTAS DIARIAS Consulta].[CATALOGO DE VENDEDORES].NOMBRE, [ENCABEZADO VENTAS DIARIAS Consulta].FECHA, Sum([ENCABEZADO VENTAS DIARIAS Consulta].IMPORTE) AS [Total de IMPORTE]
FROM [ENCABEZADO VENTAS DIARIAS Consulta]
WHERE ((([ENCABEZADO VENTAS DIARIAS Consulta].FECHA) Between [Formularios]![RANGO]![DEL] And [Formularios]![RANGO]![AL]))
GROUP BY [ENCABEZADO VENTAS DIARIAS Consulta].[CATALOGO DE VENDEDORES].NOMBRE, [ENCABEZADO VENTAS DIARIAS Consulta].FECHA, [ENCABEZADO VENTAS DIARIAS Consulta].FECHA
PIVOT [ENCABEZADO VENTAS DIARIAS Consulta].DESCRIPCION;
*Note of sintaxis: Formularios=Forms
Crosstab query works well when I enter the same date on that range of dates. It drives me nuts
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)