D
Diarmuid
hi
I have two table, InvoiceInfo and InvoiceLines. Invoice.thOurRef links
to InvoiceLines.OurRef. thOurRef is the primary key of InvoiceInfo, and
LineNo is an index in InvoiceLines.
I want to set InvoiceInfo to the number of lines in InvoiceLines.So I
set up a query to count the number of lines, called qryCountLines
SELECT InvoiceLines.OurRef, Count(InvoiceLines.LineNo) AS CountOfLineNo
FROM InvoiceLines GROUP BY InvoiceLines.OurRef;
Now I want to use this in my next query
UPDATE InvoiceInfo INNER JOIN qryCountLines ON InvoiceInfo.thOurRef =
qryCountLines.OurRef SET InvoiceInfo.NumTrans = [CountOfLineNo];
But then I get message "Operation must use an updateable query". How should
I go about this?
Thanks
Diarmuid
I have two table, InvoiceInfo and InvoiceLines. Invoice.thOurRef links
to InvoiceLines.OurRef. thOurRef is the primary key of InvoiceInfo, and
LineNo is an index in InvoiceLines.
I want to set InvoiceInfo to the number of lines in InvoiceLines.So I
set up a query to count the number of lines, called qryCountLines
SELECT InvoiceLines.OurRef, Count(InvoiceLines.LineNo) AS CountOfLineNo
FROM InvoiceLines GROUP BY InvoiceLines.OurRef;
Now I want to use this in my next query
UPDATE InvoiceInfo INNER JOIN qryCountLines ON InvoiceInfo.thOurRef =
qryCountLines.OurRef SET InvoiceInfo.NumTrans = [CountOfLineNo];
But then I get message "Operation must use an updateable query". How should
I go about this?
Thanks
Diarmuid