I am an extreme novice to access however I have taught myself some things thanks to this forum. Can someone please tell me why I keep getting a "Syntax error in join operation" error for the code below? Thanks in advance.
SELECT *
FROM [Test NewProductionRptqryHDR]
LEFT JOIN [Test NewProductionRptqryPR]
ON [Test NewProductionRptqryHDR].HeaderAB = [Test NewProductionRptqryPR].MyField
UNION SELECT *
FROM [Test NewProductionRptqryPR]
RIGHT JOIN [Test NewProductionRptqryPR]
ON [Test NewProductionRptqryHDR].HeaderAB = [Test NewProductionRptqryPR].MyField;
SELECT *
FROM [Test NewProductionRptqryHDR]
LEFT JOIN [Test NewProductionRptqryPR]
ON [Test NewProductionRptqryHDR].HeaderAB = [Test NewProductionRptqryPR].MyField
UNION SELECT *
FROM [Test NewProductionRptqryPR]
RIGHT JOIN [Test NewProductionRptqryPR]
ON [Test NewProductionRptqryHDR].HeaderAB = [Test NewProductionRptqryPR].MyField;