Lana,
I missed any mention earlier that this was a non-bound column of a list
or
combo box. It looks like your []s are wrong. Did you try:
=Replace(FileGroup1.Column(2),"-",Chr(13) & Chr(10))
Charles,
You can't ever use constants like vbcrlf in control sources or anywhere
outside of modules.
--
Duane Hookom
MS Access MVP
i noticed that you had " - " in your original post but the example you
used
was "-" could it not be finding what you are looking for. a not so nice
solution might be
=if([TextFieldOnAReport]=" - ",vbcrlf,[TextFieldOnAReport])
i assume that is what replace would do for you as well. i am a bit
rusty
on some of my commands.
Lana wrote:
Hi Duane,
I put the code u've given me as follows, but it wouldnt work for my
case...
=Replace([FileGroup1.Column(2)],"-",Chr(13) & Chr(10))
Seems it's because it is Column(2), because i tried with other
fields -
it worked fine.
How can i fix it to work?
Lana
:
You might be able to use the replace function like:
=Replace([TextFieldOnAReport],"-", Chr(13) & Chr(10) )
--
Duane Hookom
MS Access MVP
Hi all,
is there any way i can insert a line break inside the text field on
a
report?
i want to inset it instead of " - " (but only in case there is one
in
the
field)
is it feasible?
Thanks for any help.
Lana
--
Charles E. Vopicka's (Chuck) : (e-mail address removed)
Database Management, GIS Specialist and Research Assistant
Forest Biometrics Research Institute
University of Montana - College of Forestry and Conservation
Missoula, MT 59812
United States of America
Phone:
(406)243-4526
(406)243-4264
(406)549-0647 (Home)
HAVE A NICE DAY (-:
"UNLESS" (The Lorax, by Dr. Seuss)