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

Concatenate (combine two fields into one)?

Status
Not open for further replies.

jmlbones

Technical User
Jul 16, 2001
13
US
I have a Contacts table that has a First Name field and a Last Name field. I eventually want to export data into an Excel spreadsheet in a single name field. Is there a way I can do this by either adding a field to the existing table, creating a new table, or just combining them when I send the data to Excel? Thanks.
 
Hi,

You can concatenate them in a standard "select" query. Then export that into Excel.

Example:

Name:[First]&" "&[Last]
or
Name:[Last]&", "[First]

It is a good idea to include a space between the quotes to avoid the names literally running into each other. Keep in mind that Excel works similar to that of a database. You can not sort on a last name field if you do not have a last name field. This is true in Excel as it is in Access.

Nevertheless, hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top