子文件记录计数使用文本框 [英] Subform Record Count Using Textbox

查看:68
本文介绍了子文件记录计数使用文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有些人可以提供代码来计算子表单中的记录并将其显示在文本框中吗?


此代码是否进入文本框的控制源?


我的子表单在Form1形式中称为资产子表单。文本框将在同样的形式。


我也通过从组合框中选择用户来显示子窗体中的记录...


怎么样我从组合框中选择了他后在文本框中输入用户名吗?


所有帮助将不胜感激

Hi,

Can some please provide me with the code for counting records in a subform and displaying it in a textbox?

Does this code go into the control source of the textbox?

My subform is called ''Asset subform'' within the form ''Form1''.. the textbox will be in the same form.


Also im showing records in a subform by selecting a user from a combobox...

How can i input a users name in a textbox once i have selected him from the combobox?


All help will be appreciated

推荐答案





有些人可以提供代码来计算子表单中的记录并将其显示在文本框?


此代码是否进入文本框的控制源?


我的子表单中称为资产子表单形成''Form1' '..文本框将采用相同的形式。


我也可以通过从组合框中选择用户来显示子窗体中的记录...


一旦我从组合框中选择了他,我怎样才能在文本框中输入用户名?



所有帮助将被赞赏
Hi,

Can some please provide me with the code for counting records in a subform and displaying it in a textbox?

Does this code go into the control source of the textbox?

My subform is called ''Asset subform'' within the form ''Form1''.. the textbox will be in the same form.


Also im showing records in a subform by selecting a user from a combobox...

How can i input a users name in a textbox once i have selected him from the combobox?


All help will be appreciated

在Form1上的文本框的控件来源中,放置以下代码:

In the Control Source of the Text Box on Form1, place the following code:

展开 | 选择 | Wrap | 行号


在F文本框的控制源中orm1,放置以下代码:
In the Control Source of the Text Box on Form1, place the following code:
展开 | 选择 | Wrap | 行号


首先关闭 < > !在示例代码中使用时,无论是在此处还是在教科书中,<喜欢此内容> 都取代了对象名称,因此如果您的主键名为ID,则

[<主键>]


将成为

[ID]


当你真正编写代码时。


Linq ; 0)>
First off, drop the < and > ! When used in example code, whether here or in text books, <Things Like This> takes the place of an object name, so if your Primary Key is named ID,

[<Primary Key>]

would become

[ID]

when you actually write your code.

Linq ;0)>


这篇关于子文件记录计数使用文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆