Foxtable(狐表)用户栏目专家坐堂 → [求助]关于录入


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

主题:[求助]关于录入

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


加好友 发短信
等级:小狐 帖子:374 积分:3277 威望:0 精华:0 注册:2018/1/12 10:54:00
[求助]关于录入  发帖心情 Post By:2018/2/27 10:07:00 [只看该作者]

想请教下,在窗口设计一个输入框,父子孙表用产品编号关联,能用一个输入框同时实现三个表都输入了同一个产品编号吗

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/2/27 10:31:00 [只看该作者]

textChanged事件,写代码

 

Dim t1 As Table = Tables("父")

Dim t2 As Table = Tables("父.子")

Dim t3 As Table = Tables("父.子.孙")

 

If t1.Current is Nothing Then t1.addnew

t1.current("产品编号") = e.sender.Text

If t2.Current is Nothing Then t2.addnew

t2.current("产品编号") = e.sender.Text

If t3.Current is Nothing Then t3.addnew

t3.current("产品编号") = e.sender.Text

 


 回到顶部