Foxtable(狐表)用户栏目专家坐堂 → 内部数据源关联外部数据源问题


  共有2043人关注过本帖平板打印复制链接

主题:内部数据源关联外部数据源问题

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/2/22 12:23:00 [只看该作者]

不同的数据源,不能直接写sql语句。

 

你要用代码处理,如

 

Dim idx As String = "-1,"
For Each dr As DataRow In DataTables("表A").DataRows
    If DataTables("表B").find("编码 = '" & dr("编码") & "' and 金额 = '" & dr("金额") & "'") Is Nothing Then
        idx &= dr("_Identify") & ","
    End If
Next
Tables("表A").Filter = "_Identify in (" & idx.trim(",") & ")"


 回到顶部