循环浏览表单中的文本框 [英] Cycling through textboxes in a form

查看:89
本文介绍了循环浏览表单中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿大家,

我有点麻烦搞清楚如何做我猜的是一个简单的程序。我想循环浏览表单上的每个文本框,如果文本框的名称包含单词Account,然后我想收集该文本框中的信息。不言而喻,我无法弄清楚如何遍历所有文本框/组合框/复选框或任何东西的基本代码。有什么建议吗?

哦,这是在Windows XP上访问2000 VBA。

谢谢。

解决方案


嘿大家,

我有点麻烦弄清楚如何做我猜的是一个简单的程序。我想循环浏览表单上的每个文本框,如果文本框的名称包含单词Account,然后我想收集该文本框中的信息。不言而喻,我无法弄清楚如何遍历所有文本框/组合框/复选框或任何东西的基本代码。有什么建议吗?

哦,这是在Windows XP上访问2000 VBA。

谢谢。

展开 | 选择 < span class =codeDivider> | Wrap | 行号



大家好,

我有点麻烦搞清楚如何做我猜的是一个简单的程序。我想循环浏览表单上的每个文本框,如果文本框的名称包含单词Account,然后我想收集该文本框中的信息。不言而喻,我无法弄清楚如何遍历所有文本框/组合框/复选框或任何东西的基本代码。有什么建议吗?

哦,这是在Windows XP上访问2000 VBA。

谢谢。



这可能需要调整Access,但在VB6中你可以沿着这些行做一些事情(未经测试)......

展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号

Hey everyone,
I''m having a little trouble figuring out how to do what I''m guessing is a simple procedure. I want to cycle through every textbox I have on a form and if the name of the textbox includes the word "Account" then I want to gather the information in that textbox. Unfourtunatly I can''t figure out the base code for how to loop through all textboxes/comboboxes/checkboxes or anything. Any advice?
Oh, this is in access 2000 VBA on windows XP.
thanks.

解决方案

Hey everyone,
I''m having a little trouble figuring out how to do what I''m guessing is a simple procedure. I want to cycle through every textbox I have on a form and if the name of the textbox includes the word "Account" then I want to gather the information in that textbox. Unfourtunatly I can''t figure out the base code for how to loop through all textboxes/comboboxes/checkboxes or anything. Any advice?
Oh, this is in access 2000 VBA on windows XP.
thanks.

Expand|Select|Wrap|Line Numbers


Hey everyone,
I''m having a little trouble figuring out how to do what I''m guessing is a simple procedure. I want to cycle through every textbox I have on a form and if the name of the textbox includes the word "Account" then I want to gather the information in that textbox. Unfourtunatly I can''t figure out the base code for how to loop through all textboxes/comboboxes/checkboxes or anything. Any advice?
Oh, this is in access 2000 VBA on windows XP.
thanks.

This may need adjustment for Access, but in VB6 you could do something along these lines (untested)...

Expand|Select|Wrap|Line Numbers


Expand|Select|Wrap|Line Numbers


这篇关于循环浏览表单中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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