0
我在查詢運行這一點 - 當我實際運行查詢使用ConcatRelated()隨着2其中標準
錯誤3061,它拋出一個錯誤 - 參數太少。預計1
這是我的語法:
SELECT [ExcelImport].[unitID], [ExcelImport].Department,
ConcatRelated('[OrderID]','[ExcelImport]','[unitID] = ' & [unitID] & ' AND [Department] = ''' & [Department]) AS [SID]
GROUP BY [ExcelImport].[unitID], [ExcelImport].[Department]
ORDER BY [ExcelImport].[unitID];
這是使用Allen布朗的ConcatRelated()函數
http://allenbrowne.com/func-concat.html
使用時
的UnitID是整數,部門串 – BellHopByDayAmetuerCoderByNigh
如果我以後添加三聯單引號部=「」」然後我得到語法錯誤的調試錯誤在查詢表達式字符串 - 我編輯了我的操作系統以反映更新的synatx – BellHopByDayAmetuerCoderByNigh
您需要在部門之後關閉三重引號,並添加'&''''。 – Alan