I have copied code from the MS Knowledge Base that produces the above
report. I understand the code and am pretty comfortable working with
recordsets. I used the same report structure successfully with Access2
some years ago.
The only real changes I have made to the sample were made to accommodate
a larger number of columns and to display a blank string instead of 0
(having saved the value for totals).
BUT there is clearly something wrong
My code loops through the OnFormat event without proceeding to the
OnPrint event until the last record. This produces an odd result
because the report prints the last record a number of times equal to the
number of records it should print. ie. a report from a query that
produces 531 lines of information has the last record printed 531 times.
I am guessing there is something I dont know that is more likely to be
related to the underlying structure of the report rather than the lines
of code.
Any clues gratefully received.
gus
*** Sent via Developersdex http://www.developersdex.com ***