Hi, I have a query that works fine:
SELECT *
FROM [outputlinks1]
UNION ALL
SELECT * FROM [outputlinks2];
I have VBA code of this query that fails (is not recognised):
Dim strSQL As String
strSQL = "SELECT * " & _
"FROM [outputlinks1] " & _
"UNION ALL " & _
"SELECT * " & _
"FROM [outputlinks2];"
DoCmd.RunSQL strSQL
I haven't a clue why. Does anyone know??