Unbound Textbox shows printpreview but data goes away when printing?

  • Thread starter Thread starter Rog
  • Start date Start date
R

Rog

I have a report and in the detail section I have added an
unbound textbox. In the detail_print function I put some
data into this box for each record.

When I print preview the report, the data shows up
great. But when I go to Print it out on paper, I get 0
in each of the unbound controls.

I don't even know where to begin looking?

I don't have any code that changes the data in the
unbound control except in the detail_print function.

Thanks,

Rog
 
If you preview the report and then preview, the Detail_Print code will all
run twice for each record. Would the values on the second run (print) be
affected by the values from the first run (preview)?

If your code is performing calculations that accumulate over the pages of
the report, this approach is not reliable. For example, if you print just
page 5, the code may not run for the intervening pages.
 
I do have code in the Detail_Print that is calculating a
running sum for each record that is printed in the
detail. This value is then put into an unbound Textbox
in the detail section.

What I am trying to do is keep a running talley of each
detail record. How can I do this?

rog
 
Drag a second copy of the Amount field from the Field List into the Detail
section, and set its Running Sum to:
Over All
 
Back
Top