edit variable length items in "Access" database tables

C

CHARLES_WALKER

In my database table I am holding a variable length item in a database
record; the item may be from two to six alphabetic characters long.
Trailiing spaces pad the item where required.

To print out the item in a report, the item itself is sandwiched between two
fixed-length items separated by an oblique stroke, (forward slash): -
***/variable length/***.

How can I suppress the trailing spaces in my variable length item when
printing results ?

Yours Sincerely,

CHARLES WALKER
 
J

John Spencer

Take a look at the RTrim function or even the Trim function.

RTrim(SomeField) will trim trailing spaces off a field
Trim([SomeField]) will trim leading and trailing spaces off a field

--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

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