错误3464:使用Allen Browne的Concat函数的条件表达式中的数据类型不匹配

时间:2019-06-03 14:38:38

标签: ms-access

我正在使用http://allenbrowne.com/func-concat.html连接此表:

[Test2 Query2]

Cc       Product Code  
1        a  
1        b  
2        c  
3        d  
3        e  
4        f  
4        g  
4        h  

进入

[Test2 Query3]

Cc       Product Codes  
1        a, b  
2        c  
3        d, e  
4        f, g, h  

我当前的SQL视图是:

SELECT [Test2 Query2].Cc, 
ConcatRelated("[Product Code]", "[Test2 Query2]", 
              "[Test2 Query2].Cc = """ & [Test2 Query2].Cc & """") AS [Product Codes] 
FROM [Test2 Query2];

但是,当我运行此命令时,它返回“错误3464:条件表达式中的数据类型不匹配”。

*注意:产品代码存储为短文本,抄送是数字。

我也尝试引用Concatenating multiple rows into single line in MS Access无济于事。

感谢您的帮助!

0 个答案:

没有答案