Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sumarizar el listado
Message
From
21/08/2001 15:09:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/08/2001 15:01:29
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00546930
Message ID:
00546936
Views:
21
>Amigos,
>
>Tengo un reporte en donde se detalla los items de cada factura u el total de
>cada factura se presenta en una columna mas a la derecha asi:
>
> cantidad item valorU subtotal total
>
> 5 fffffffff 25 125
> 2 vvvvvvvvv 20 40 165 <-totfac
>
> -----------------------------------------------
>
> 6 hhhhhhhh 15 90
> 4 uuuuuuuun 2 8 98 <-totfac
>
> -----------------------------------------------=============
> total: 263 <- totlist
>
>
>La variable totfac se reinicia por cada factura y la variable totlist se supone
>que debe acumular la variable totfac.
>
>mando a generar el reporte con el uso del comnado FOR, como resultado el
>valor que aparece en totlist NO CORRESPONDE a la sumatoria de las facturas.
>
>Si alguien sabe cual es el problema, le agradezco.

Un método fácil de meterte en problemas es totalizar la variable dos veces: en la definición de variables del informe, y en la franja de subtotal. Si esto es el caso, lo debes totalizar en uno de los lugares, pero no en el otro.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform