I am using the following statement to develop a simple query. Unfortunately I continually get a syntax error when I run the page. If I take out either of the RaisedInvoice Select or the Transaction Sum elements it works but fails when both are in. It must be something stupid so, can I please apologise in advance for my silly mistake.
SELECT
RaisedInvoices.[Invoice Number], SUM(Transactions.sellgross) AS SumOfsellgross
FROM (RaisedInvoices LEFT JOIN Customers ON RaisedInvoices.[Customer WORef] = Customers.WORef)
LEFT JOIN Transactions ON RaisedInvoices.[Invoice Number] = Transactions.invnumber