Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use the TRIM function with a bound control in an Access report?

Status
Not open for further replies.

ivalum21

MIS
Jul 14, 2004
63
US
I am making an Access report...in this report I have a section that lists a person's First Name, Last Name, Address, City, State, Zip.

Is there a way I can apply a trim function to those bound controls, so I don't have to worry about there being a lot of space between someone's first and last names given how long their name is??

Example:

What is looks like now...
Steve Smith
Benjamin Jones

What I want it to look like...
Steve Smith
Benjamin Jones
 
Yes:

Set the ControlSource to

=Trim([Firstname]) & " " & Trim ([Lastname])

John
 
Do I change it in the Properties > Data > Control Source?? Because when I change it there, I get an error...
 
What are the actual names of the fields?

These must be enclosed in the square brackets.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top