Foxtable(狐表)用户栏目专家坐堂 → 新增多行


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

主题:新增多行

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


加好友 发短信
等级:幼狐 帖子:82 积分:1066 威望:0 精华:0 注册:2014/4/6 20:26:00
  发帖心情 Post By:2021/6/23 8:50:00 [显示全部帖子]

Dim sqr As String,sqlx As String,cgdj As String,jhrq As String,ddh As String,yt As String,sqr As String
    sqr = e.Form.Controls("申请人1").Text
    sqlx = e.Form.Controls("申请类型1").Text
    cgdj = e.Form.Controls("采购等级1").Text
    jhrq = e.Form.Controls("交货日期1").Text
    ddh = e.Form.Controls("销售订单号1").Text
    yt = e.Form.Controls("用途").Text
    sqr = e.Form.Controls("需审核人1").Text
'其中定义变量类型需要根据字段类型来定义,如交货日期是date类型.
For i As Integer = 1 To 5
    Dim nr =  Tables("采购申请单_采购申请明细").AddNew()
    nr("申请人") = sqr
    nr("申请类型") = sqlx
    nr("采购等级") = cgdj
    nr("要求交货日期") = jhrq
    nr("销售订单号") = ddh
    nr("用途") = yt
    nr("需审核人") = sqr
Next

 回到顶部