can not use chr(10) in report

  • Thread starter Thread starter David Mc
  • Start date Start date
D

David Mc

i produced a reportthat automatically put in hard returns
into the content through chr(10) and chr(13), it was
working find, but now i keep getting promts for Chr value
whrn i open the form. why.
 
David,

CAN!

Is your expression used in the controlsource of a control on your
report, or within the query that the report is based on? Can you tell
us any more about the syntax of the expression? Do you know that the
Chr(13) should come before the Chr(10) in your expression? What form
are you talking about?

- Steve Schapel, Microsoft Access MVP
 
Actually, if he's getting prompts for Chr when he opens the report, it's
likely a References problem.

<stock answer>
On the machine(s) where it's not working, open any code module (or open the
Debug Window, using Ctrl-G, provided you haven't selected the "keep debug
window on top" option). Select Tools | References from the menu bar. Examine
all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)
</stock answer>
 
Back
Top