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!

Trim function returns #Type! error on text field

Status
Not open for further replies.

SGTSweety

Programmer
Oct 25, 2003
24
US
I am attempting to build a Report which is a letter to program participatns. In building the address block, I want to trim the [own_city] or city. The data through a query from a linked table. The [own_city] field is 30 characters long and fills unused characters with spaces. The following in the report DATA; Control Source field returns #Type! error: =Trim ([own_city]).

Attempted to use same trim function in the query which returned negative results.

 
Is it possibile your [tt]own_city[/tt] field contains NULL?

Have fun.

---- Andy
 
Thanks for the quick response.

Not in this case, this field will always have a value.
I was wondering if the data from the linked table (which I cannot edit) is a factor.
Steven
 
What about this ControlSource ?
=Trim([own_city] & "")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV:

Unfortunately this didn't work either. I've never had this problem before.

Thanks for you assistance. If you think of anything else, would you mind posting it?

Steven
Have a great day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top