D
dhstein
I'm trying to figure out how to do something - so I'm playing around with
this subquery and getting a syntax error.
SELECT tblInvoice.CustomerName
FROM tblInvoice INNER JOIN tblLines ON tblInvoice.InvoiceNumber =
tblLines.InvoiceNumber
(SELECT TOP 1 Dupe.CustomerName
FROM tblInvoice AS Dupe
WHERE Dupe.InvoiceNumber = tblInvoice.InvoiceNumber
ORDER BY Dupe.InvoiceDate DESC)
FROM tblInvoice;
Any help is appreciated
this subquery and getting a syntax error.
SELECT tblInvoice.CustomerName
FROM tblInvoice INNER JOIN tblLines ON tblInvoice.InvoiceNumber =
tblLines.InvoiceNumber
(SELECT TOP 1 Dupe.CustomerName
FROM tblInvoice AS Dupe
WHERE Dupe.InvoiceNumber = tblInvoice.InvoiceNumber
ORDER BY Dupe.InvoiceDate DESC)
FROM tblInvoice;
Any help is appreciated