Subject Totaling fields in a report
From Charlie <tm@tc.com>
Date Sun, 18 Dec 2022 15:57:49 -0500
Newsgroups dbase.getting-started
Attachment(s) imp_spd.rep

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.