将一条记录从一个子表单移动到另一个子表单 [英] move one record from one subform to another subform
本文介绍了将一条记录从一个子表单移动到另一个子表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb6中将记录从一个子表单移动到另一个子表单
how to move the record from one subform to another subform in vb6
推荐答案
使用With运算符,u可以从任何表单访问任何表单的记录。例如
如果Form1包含
txtName
txtAge
你想从Form2获取数据然后跟着你的行动你可以在form2加载或任何你的事件中执行
想要调用数据写下面的代码
with Form1
Dim name as string = .txtName.Text
Dim Age as string = .txtAge.text
结束
i猜这就是你要问的。
Using With operator u can access record of any form from any form. E.g.
If Form1 contains
txtName
txtAge
and u want to fetch data from Form2 then following action u can perform
in form2 load or any event where u want to call data write following code
with Form1
Dim name as string= .txtName.Text
Dim Age as string=.txtAge.text
end with
i guess this is what you were asking.
这篇关于将一条记录从一个子表单移动到另一个子表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文