field combination

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two fields in my database, last and first
I want to combine last+first with a comma and a space in between them
Example: Hanks, Tom

How do I write a query for this?

Thanks
 
In the query grid you would enter

Field: FullName: [Last] & ", " & [First]

In SQL that would look like

SELECT [Last] & ", " & [First] as FullName
FROM SomeTable

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
bladelock said:
I have two fields in my database, last and first
I want to combine last+first with a comma and a space in between them
Example: Hanks, Tom

How do I write a query for this?

Thanks

SELECT ([last] & ", " & [first]) As fullname ...

Carl Rapson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top