Concatenating fields in a query

W

Wes Peters

Is it possible to concatenate two text fields into one in a query?

I'm trying to combine FirstName and LastName AS EmpName and have it be the
rowsource in a combo box. I know how to do this in an mdb but not an adp.
It doesn't seem to work the same and I can't find anything on it.

Any thoughts?
Thanks,
Wes
 
C

Cinzia

Wes Peters said:
Is it possible to concatenate two text fields into one in a query?

I'm trying to combine FirstName and LastName AS EmpName and have it be the
rowsource in a combo box. I know how to do this in an mdb but not an adp.
It doesn't seem to work the same and I can't find anything on it.

Any thoughts?
Thanks,
Wes
Hi Wes,
try
SELECT IDEmploye, FirstName + ' ' + LastName as EmpName FROM EMPLOYEES

Bye
Cinzia
 
S

Simon Shaw

You may find there is more to this if either first or last names might be
null.

I use :
isnull ( firstname + ' ', '' ) + isnull ( lastname , '' )

Rgds
S
 

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

Top