Mark E
10-07-2001, 02:45 AM
Hello,
Am trying to figure out how to concatenate two fields ( eg Surname, FirstName) into one separated by a comma. Can this be done via a query or is a report required?
raskew
10-07-2001, 03:31 AM
Create this query in Northwind to see the technique:
SELECT Employees.LastName, Employees.FirstName, [LastName] & ", " & [FirstName] AS FullName
FROM Employees;
R. Hicks
10-07-2001, 05:26 AM
Bob is giveng you a SQL String for a query. This may confuse you if you are not used to working with it. His example is a correct way to do it.
Try going to your query in design view and add a Field Expression:
FullName:[Surname] & "," & [FirstName]
The above is basically the same theory as Bob gave if you choose to view the finished query in SQL view.
HTH
RDH