R
Rod
This one seems a little bizarre:
At the OnFormat event I re-set to heights of some fields in the detail
section of a report based on certain criteria. I keep a running total of the
overall height of the section and, at the end of the event procedure, re-set
the height:
Me.Detail.Height = valDetailHeight
Because this didn't seem to be working, I inserted a debug.print immediately
after this line to report on the actual values of Me.Detail.Height and
valDetailHeight. Although for most rows of the report, the two values are the
same, sometimes the values are different by a good few hundred twipps.
What seems utterly bizarre is that I have just set the value of
Me.Detail.Height to equal valDetailHeight and yet, in the very next line of
code (debug.pring Me.Detail.Height & ", " & valDetailHeight) the two values
are different! How can this be?
At the OnFormat event I re-set to heights of some fields in the detail
section of a report based on certain criteria. I keep a running total of the
overall height of the section and, at the end of the event procedure, re-set
the height:
Me.Detail.Height = valDetailHeight
Because this didn't seem to be working, I inserted a debug.print immediately
after this line to report on the actual values of Me.Detail.Height and
valDetailHeight. Although for most rows of the report, the two values are the
same, sometimes the values are different by a good few hundred twipps.
What seems utterly bizarre is that I have just set the value of
Me.Detail.Height to equal valDetailHeight and yet, in the very next line of
code (debug.pring Me.Detail.Height & ", " & valDetailHeight) the two values
are different! How can this be?