Foxtable(狐表)用户栏目专家坐堂 → 跨表加入新行


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

主题:跨表加入新行

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


加好友 发短信
等级:超级版主 帖子:107751 积分:548094 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/2/19 15:52:00 [只看该作者]

dim dr,dr2 as datarow
for each s as string in datatables("总表").getvalues("姓名")
dr = datatables("回访记录表").find("姓名='" & s & "'","回访日期 desc")
if dr isnot nothing then
dr2 = datatables("回访记录表").addnew
dr2("姓名") = s
dr2("回访日期") = date.today
dr2("状态") = dr("状态")
end if
next
[此贴子已经被作者于2021/2/19 15:52:11编辑过]

 回到顶部