Foxtable(狐表)用户栏目专家坐堂 → 求助


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

主题:求助

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


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/4/20 8:55:00 [显示全部帖子]

Dim r As Row = Tables("表A").Current

Dim dr As DataRow = DataTables("表B").Find(“某列1 Is NUll And 某列1 Is NuLL”)

If dr is nothing then

    dr = Datatables("表B").AddNew

End if

dr("某列1") = r("某列1")

dr("某列2") = r("某列2")

dr("某列3") = r("某列3")

 


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


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/4/20 16:11:00 [显示全部帖子]

Dim r As Row = Tables("表A").Current
Dim dr As DataRow  = DataTables("表B").Find("某列1 = '" & r("某列1") & "' And  某列2 = '"  & r("某列2") & "'")
If dr Is Nothing Then
    dr = DataTables("表B").Find("某列1 Is NUll And 某列1 Is NuLL")
    If dr Is Nothing Then
        dr = DataTables("表B").AddNew
    End If
    dr("某列1") = r("某列1")
    dr("某列2") = r("某列2")
    dr("某列3") = r("某列3")
End If

 

看看:

http://www.foxtable.com/help/topics/0396.htm

http://www.foxtable.com/help/topics/1284.htm

 


 回到顶部