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!

I am looking to merge multiple fiel 2

Status
Not open for further replies.

th1011

Technical User
Sep 23, 2003
8
US
I am looking to merge multiple fields into one. Example FirstInitial, LastName, PositionNumber to One field labeled Name.
A. Thomas 12345
 
Hi

Use the Concatanate operator &

so

FullName = [Title] & " " & [FirstName] & " " & [Lastname]

using your own column names of course

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
If you just want to run a query you can combine the fields like:

You may want to use the trim in front to eliminate extra spaces, here is an example.

SELECT Trim([Observation]) & " " & Trim([Observations]) AS Combined Observation FROM YourTableName;

Dodge20
 
If you just want to see it in a query then
Code:
   Select (FirstInitial & ' ' & 
           LastName & ' ' & 
           Format(PositionNumber,"0")) As [Name]
   From ...
If you want to create a new field in your table then add the Name field to your table in table design view and then
Code:
   UPDATE tbl SET [Name] =
          (FirstInitial & ' ' & 
           LastName & ' ' & 
           Format(PositionNumber,"0")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top