Concatinating String

I have a report, I want it to display the First and Last Name of an employee concatinated into one field.

I had the controlsource of the field set to this:

=[EmployeeFirstName] & " " & [EmployeeLastName]

On the report, it's displaying "# Type" in that field instead of the name.  What's the most effecient way to achieve what I want done?
gcgcitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lluddenCommented:
Try
[EmployeeFirstName].Value & " " & [EmployeeLastName].Value
0
Jeffrey CoachmanMIS LiasonCommented:
What I like to do is to concatenate the names in the form's recordsource.
This way you can simply add it to the report like the other fields.

SELECT Fld1, Fld2, Fld3, [EmployeeFirstName] & " " & [EmployeeLastName] AS FullName
FROM Yourtable


In your case, check the spelling of your Fields to be sure.
Also make sure you are doing this in the control Source property of a Textbox.

Finally, if you are doing this via code, you must open the Report in Print Preview in order for this code to run.

JeffCoachman
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mbizupCommented:
<< "# Type" >>

Verify that the textbox (or whatever) on your report does not have it's format properties set in a way that excludes text.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gcgcitAuthor Commented:
boag2000: Just realized it was a look-up not textbox control.  I deleted the control and added a textbox to make sure no weird constraints were on it and realized it wasn't a textbox afterall.  Thanks for that tip.
0
gcgcitAuthor Commented:
correction: mbizup gave that tip
0
gcgcitAuthor Commented:
Both provided information that helped solve the issue.
0
Jeffrey CoachmanMIS LiasonCommented:
^
Yeah, I was wondering about that as well, ...I have never seen this error...?
0
Jeffrey CoachmanMIS LiasonCommented:
great, thanks

;-)

Jeff
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.