Lookup 2对2 比较两个字符 从DataSet返回一个值
我想比较DataSet的两个字段 owner_id(datatype 是Guid), User_agent(datatype是string), 如果相等取出数DataSet的count字段,报表表达式怎么写?
我写成如下:
Lookup(Fields!owner_id.Value & Fields!user_agent.Value,
Fields!id.Value & Fields!agent.Value, Fields!count.Value, "DataSet2")
但是报错了
Warning1[rsRuntimeErrorInExpression] The Value expression for the textrun ‘owner_id.Paragraphs[0].TextRuns[0]’ contains an error: Operator '&' is not defined for type 'Guid' and string "1.0".
本人做报表时间不久,请达人帮忙
[解决办法]
& 单个的表示与操作,你前后两个对象类型不匹配,不能做这个操作
[解决办法]