简体   繁体   English

在 ms-access 中向表单添加多个文本框?

[英]Adding multiple textboxes to a form in ms-access?

I would like to have a line on an Access user-form .我想在Access用户表单上有一行。 Call it Item #1 .将其Item #1 I would like Item #1 to be a text box where the user can enter any type of information.我希望Item #1是一个文本框,用户可以在其中输入任何类型的信息。 So for example, say the user entered "Tutoring" and then next to this was an additional Textbox that allowed the user to enter the hours spent tutoring and the date in which the hours were logged.例如,假设用户输入“辅导”,然后在此旁边是一个额外的Textbox ,允许用户输入辅导所花费的时间和记录时间的日期。

What I would like is to have a button to allow the user to add a second line (or set of textboxes ) when needed, or a third line, etc. Is this something that can be set up on the Access form?我想要的是有一个button ,允许用户在需要时添加第二行(或一组textboxes ),或第三行等。这是可以在Access表单上设置的吗? Does this need to be coded in VBA ?这是否需要在VBA 中编码? Just looking for some tips to provide me some direction on the best approach.只是寻找一些提示,为我提供有关最佳方法的指导。

“如果数据不应该存储在表格中,那就有点复杂了。”您必须在表单加载时使文本框不可见,然后在上一个的 After Update 事件中使每个文本框可见盒子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM