Enter New Line Text Field

D

Donya

I need to code a ctrl enter into a text field. I have bullet points in the
field and need hard enter applied before each bullet point.
 
K

KARL DEWEY

If you are wanting to do an update query the you need to determine the Ascii
code of the character you are using for a bullet. First determine it's
location in the field.
Then use a calculated field --
Ascii Value: Asc(Right(Left([YourField], X), 1))
X is the location in the field.
Then for update use --
Replace([YourField], Chr(Z), Chr(Z) & Chr(13) & Chr(10))
Z is the Ascii code determined above. The Replace inserts a carriage return
and a line feed for every bullet.
 
D

Donya

THANKS!! This sounds PERFECT!!

KARL DEWEY said:
If you are wanting to do an update query the you need to determine the Ascii
code of the character you are using for a bullet. First determine it's
location in the field.
Then use a calculated field --
Ascii Value: Asc(Right(Left([YourField], X), 1))
X is the location in the field.
Then for update use --
Replace([YourField], Chr(Z), Chr(Z) & Chr(13) & Chr(10))
Z is the Ascii code determined above. The Replace inserts a carriage return
and a line feed for every bullet.
--
KARL DEWEY
Build a little - Test a little


Donya said:
in a query
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top