Oct 8, 2003 #1 th1011 Technical User Joined Sep 23, 2003 Messages 8 Location US I am looking to merge multiple fields into one. Example FirstInitial, LastName, PositionNumber to One field labeled Name. A. Thomas 12345
I am looking to merge multiple fields into one. Example FirstInitial, LastName, PositionNumber to One field labeled Name. A. Thomas 12345
Oct 8, 2003 1 #2 KenReay Programmer Joined Aug 15, 2002 Messages 5,424 Location GB 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 - http://www.kenneth.reay.btinternet.co.ukUK Upvote 0 Downvote
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 - http://www.kenneth.reay.btinternet.co.ukUK
Oct 8, 2003 #3 dodge20 MIS Joined Jan 15, 2003 Messages 1,048 Location US 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 Upvote 0 Downvote
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
Oct 8, 2003 1 #4 Golom Programmer Joined Sep 1, 2003 Messages 5,595 Location CA 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") Upvote 0 Downvote
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")