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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation

Status
Not open for further replies.

Rjc8513

Technical User
Feb 12, 2001
140
0
0
US
I'm stumped.

Trying to combine the text "City" with the field value [CITY] in a text box on a report. Have tried many different combinations but can't get it to work.

"City: " & [CITY]

Any suggestions? Thanks.
 
Is it in the control source? Make sure it starts with the = sign!
 
Yeah but you have to add a text box, and then set the control source to ="City " & [CITY] assuming city is part of your record source. Also be sure the text box name is not CITY... you need to change that to txtCity or something. You will get an error if you name the text box the same thing as a field in your record source.

Also, is city the same for every value in your record set? You will get a random occurance of city if it is different... you may want grouping levels if this is the case.
 
Thanks ideafixer! Renaming the text box fixed the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top