trim spaces

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I trim spaces between fields in a report? One field (section) can be
anywhere from 1-5 characters long. I want the following field (section
suffix) to be immediately after and not several spaces over depending on how
long the first field (section) is. I know there is some kind of code that
eliminates empty spaces but I don't know the code or where to put it.
 
Carol
Use "concatenation". For ex. given a FirstName and LastName field...
Bob Anderson
Create an unbound text control and name it FullName. (never use the name
of any of the fields)
Give it a ControlSource of
=[FirstName] & " " & [LastName]
yields...
Bob Anderson

Or another common use is...
=[LastName] & ", " & [First Name]
yields...
Anderson, Bob
hth
Al Camp
 

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

Similar Threads

Problem with the TRIM command 3
Access Access anti-trim?? 0
extra space showing in a report 4
Sub Report placement 1
Remove extra space in a Report 1
Rich Text Format 0
Putting text in parentheses 2
Extra space on reports 1

Back
Top