Hi,
I cant get a concatenate in my Sql Statement to work.
[surname] & "" & [forename] AS EmployeeName,
I had a coma in between the quote marks and the writing turned red but it still didn't work when I removed it. The full statement is:
strSQL = "SELECT [trust staff].CHP AS Chp, [trust staff].CHPLocation AS Location, [trust staff].PAYNO AS PayNo, [trust staff].[ADDIT PAYNO] AS AdditPayNo, [surname] & "" & [forename] AS EmployeeName [trust staff].START_DATE AS StartDate, [trust staff].[GRADE START], [trust staff].[JD CODE NO] AS JdCodeNo, [trust staff].LEFT AS Leavers, [trust staff].TRANSFER as Transfers " & _
"FROM [trust staff] " & _
Does anyone know how to fix this problem.
I cant get a concatenate in my Sql Statement to work.
[surname] & "" & [forename] AS EmployeeName,
I had a coma in between the quote marks and the writing turned red but it still didn't work when I removed it. The full statement is:
strSQL = "SELECT [trust staff].CHP AS Chp, [trust staff].CHPLocation AS Location, [trust staff].PAYNO AS PayNo, [trust staff].[ADDIT PAYNO] AS AdditPayNo, [surname] & "" & [forename] AS EmployeeName [trust staff].START_DATE AS StartDate, [trust staff].[GRADE START], [trust staff].[JD CODE NO] AS JdCodeNo, [trust staff].LEFT AS Leavers, [trust staff].TRANSFER as Transfers " & _
"FROM [trust staff] " & _
Does anyone know how to fix this problem.