Subject Re: Totaling fields in a report
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Mon, 19 Dec 2022 12:06:32 +0530
Newsgroups dbase.getting-started
Attachment(s) sum.jpg

Good Morning Charlie,

> I am trying to total price , qty in a report.  I have attached the code.  Someone helped me do this several years ago and the other program works well so I tried to replicate what I think I did back then with that report.  However the other report I believe was created from scratch where this one was created by the wizard.  Possibly that is a factor.  With this attempt I am getting an error variable undefined for either ntotal or text2.  I have tried different parent combos (which I don't understand).   The bulk of the problem I think lies at the bottom code lines of the attachment.
>
> Any help will be very much appreciated.


Without the table (Just an empty table would have been suficient) I
cannot open the report in designer.

You are doing a lot of work creating totals which are not required.

I would recommend that you get hold of Ken's books on reports. It would
help you out.

A brief description of how to do it. Open the report in designer.
In the layout menu click on Add Groups and summaries.

Click on summaries tab and then on the field you want to sum.

Add it.

You will have to position it once it has been added or change its colour
etc (In case you do not want blue)

Hope this helps.

Regards
Akshat