Foxtable(狐表)用户栏目专家坐堂 → 导入到关联表


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

主题:导入到关联表

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109479 积分:557057 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/11/17 21:56:00 [显示全部帖子]

方法1、
dim id as integer = datatables("出库明细").compute("max(_identify)")

Dim dlg As New OpenFileDialog '定义一个新的OpenFileDialog
dlg.Filter = "Excel|*.xlsx" '设置筛选器
If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮
    Dim mg As New Merger
     mg.Format = "excel"
    mg.SourcePath = dlg.FileName
    mg.SourceTableName = "出库明细$"
    mg.DataTableName = "出库明细"
    mg.Merge()

dim r as row = tables("出库列表").current

datatables("出库明细").replacefor("出库单号",r("出库单号"),"_identify >" & id)

datatables("出库明细").replacefor("出库日期",r("出库日期"),"_identify >" & id)

End If


2、使用这种方法导入:http://www.foxtable.com/webhelp/topics/2334.htm


 回到顶部