PC Review


Reply
Thread Tools Rate Thread

Concatenation question

 
 
Terri
Guest
Posts: n/a
 
      19th Dec 2009
I am trying to concatenate two fields and then add text in brackets to the
end. Here is what I have:

StaffFullName = ([Me.LastName] & ", " & [Me.FirstName] & " (Mgr)")

I want the end result to be: Smith, Mary (Mgr)

How do I achieve this?

Thank you,
Terri
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      19th Dec 2009
What you've done will work. You can also use the "+" operator if there is a
possibility that there will be a missing first name:

StaffFullName = ([Me.LastName] & "," & (" "+ [Me.FirstName]) & " (Mgr)")

That will avoid an extra space if the first name is missing.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Terri" <(E-Mail Removed)> wrote in message
news:5A9BB51E-24E8-40A3-941F-(E-Mail Removed)...
>I am trying to concatenate two fields and then add text in brackets to the
> end. Here is what I have:
>
> StaffFullName = ([Me.LastName] & ", " & [Me.FirstName] & " (Mgr)")
>
> I want the end result to be: Smith, Mary (Mgr)
>
> How do I achieve this?
>
> Thank you,
> Terri



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenation Question Dave Kennedy Microsoft Access Form Coding 1 28th Feb 2008 04:16 PM
Concatenation Question Jay Microsoft Excel Discussion 3 14th Apr 2007 01:37 PM
Concatenation question Poindexter Microsoft Excel Programming 1 16th Mar 2007 07:38 PM
Concatenation question =?Utf-8?B?fkM=?= Microsoft Excel Worksheet Functions 1 2nd Feb 2006 10:14 PM
Concatenation question Jesse Microsoft Excel Worksheet Functions 3 14th Nov 2003 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.