Foxtable(狐表)用户栏目专家坐堂 → [求助]关于从后台表a提取部分字段数据填充到当前表的问题


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

主题:[求助]关于从后台表a提取部分字段数据填充到当前表的问题

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


加好友 发短信
等级:四尾狐 帖子:998 积分:6656 威望:0 精华:0 注册:2014/10/20 11:06:00
  发帖心情 Post By:2014/12/31 16:07:00 [显示全部帖子]

Dim isbn As WinForm.TextBox = e.Form.Controls("isbn")
Dim Cols1() As String = {"正题名","副题名","丛编题名","编著者","出版社名","出版时间","开本","价格"}
Dim Cols2() As String = {"正题名","副题名","丛编题名","编著者","出版社名","出版时间","开本","价格"}
For Each dr1 As DataRow In DataTables("书目").Select("[isbn] = '" & isbn.Text & "'")
    Dim dr2 As DataRow = DataTables("淮河路书库").AddNew()
    For i As Integer = 0 To Cols1.Length -1
        dr2(Cols2(i)) = dr1(Cols1(i))
    Next
Next



你的文本框参数没写进去,当然会有问题,用这代码吧
[此贴子已经被作者于2014-12-31 16:07:37编辑过]

 回到顶部