SELECT DISTINCTROW [OEE/A Query].Press, Sum([OEE/A Query].[SumOfLabor Hours]) AS [Sum Of SumOfLabor Hours], Sum([OEE/A Query].[SumOfGood Pieces]) AS [Sum Of SumOfGood Pieces], Sum([OEE/A Query].[Scrap Pieces]) AS [SumOfScrap Pieces], Sum([OEE/A Query].[SumOfMachine Hours]) AS [SumOfSumOfMachine Hours], Sum([OEE/A Query].[Total Parts Hours Earned]) AS [SumOfTotal Parts Hours Earned], Sum([OEE/A Query].[Standard Pcs Expected]) AS [Stand Pcs Expected]
FROM [OEE/A Query]
GROUP BY [OEE/A Query].Press;
SELECT Sum(Sort)+Sum(Straighten)+Sum(Shine)+Sum(Standardize)+Sum(Sustain) AS total
FROM [Shift Report Table];
當我運行此代碼時,它會產生一個錯誤,即「SQL語句結束後發現的字符」。 那麼,如何調整此代碼以避免任何錯誤?Microsoft Access 2003 - 正確編排代碼
你是什麼意思「鋪設」? – Tomalak 2010-02-02 13:12:55
如果您在Access查詢設計窗口中工作,則可以根據需要佈置SQL,因爲Access有自己的想法,只要保存即可更改。這很煩人。 – Fionnuala 2010-02-02 13:14:22