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