易表在线答疑技术与交流用户社区 → [求助]如何匹配地址码?


  共有7102人关注过本帖树形打印复制链接

主题:[求助]如何匹配地址码?

帅哥哟,离线,有人找我吗?
wjq1072
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2013/3/18 12:51:00 [显示全部帖子]

不理解!

 

 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:aaa.egd


 回到顶部
帅哥哟,离线,有人找我吗?
wjq1072
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2013/3/18 19:48:00 [显示全部帖子]

参考:地址包含现有建筑物前两个中文文字是可以的!

 

 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:aaa.egd


 回到顶部
帅哥哟,离线,有人找我吗?
wjq1072
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:16190 积分:125850 威望:1 精华:0 注册:2006/8/12 12:29:00
  发帖心情 Post By:2013/3/18 22:15:00 [显示全部帖子]

参考:地址包含“现有建筑物”(限制四个中文字符)中连续两个中文文字,可用刷新公式:

 

If(Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",0,4),[地址])>-1 And Len(Mid("""),"#",""",0,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",0,4)),If(Instr(Mid(""")+""",0,4))"+","""""+Rept(")",[%A%])) <> "",Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",0,4),[地址])>-1 And Len(Mid("""),"#",""",0,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",0,4)),If(Instr(Mid(""")+""",0,4))"+","""""+Rept(")",[%A%])),If(Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",2,4),[地址])>-1 And Len(Mid("""),"#",""",2,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",2,4)),If(Instr(Mid(""")+""",2,4))"+","""""+Rept(")",[%A%])) <> "",Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",2,4),[地址])>-1 And Len(Mid("""),"#",""",2,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",2,4)),If(Instr(Mid(""")+""",2,4))"+","""""+Rept(")",[%A%])),If(Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",4,4),[地址])>-1 And Len(Mid("""),"#",""",4,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",4,4)),If(Instr(Mid(""")+""",4,4))"+","""""+Rept(")",[%A%])) <> "",Eval("If(Instr(Mid("""+Substitute(Substitute(Substitute(Eval("Substitute(""|@|#|"",""|"","""+Substitute(ListFor("表1","现有辖区建筑物",2),"|",""")+""|""+Substitute(""|@|#|"",""|"",""")+""")"),"@",""",4,4),[地址])>-1 And Len(Mid("""),"#",""",4,4))=4,FindText(""表1"",""村社区代码"",""现有辖区建筑物"",""Instr"",Mid("""),"|",""",4,4)),If(Instr(Mid(""")+""",4,4))"+","""""+Rept(")",[%A%])),"")))

 

其中表达式变量[%A%]:Aggregate(4,1,3,Rows,3,1)


 回到顶部