且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自动更新表单上的字段

更新时间:2023-02-08 18:01:57

我可以''我真的遵循你所要求的逻辑。但是,我认为您应该查看以下教程,因为它们可以帮助您。

级联组合/列表框
过滤表单
I can''t really follow the logic of what you are asking. However, I think you should check out the following tutorials as they may be able to help you.

Cascading combo/list boxes
Filtering on a form


谢谢。


让我试着澄清一下我想做什么。


我在表单上有四个字段,它们都是组合框,并指示用户为这三个字段进行选择。我想将其中一个盒子更改为一个tex盒子,一旦其他一个组合盒被填充就会自动更新。


为了说明,一个组合框被命名为'' OracleAccountNumber'。一旦它有一个帐号,我希望文本框''Group''自动更新其指定的组。


我有一个名为''Accounts'的表,其中存储所有帐户组组合。也许我提出的代码是错误的方法。


清除它了吗?在一天结束时,我不希望该组成为用户选择的内容,但我仍然希望用户能够看到此表单上列出的组。
>
感谢您的回复。
Thanks.

Let me try to clarify what I am trying to do.

I have four fields on a form that are all combo boxes, and the users are instructed to make selections for all three. I want to change one of those boxes to a tex box, one that automatically updates once one of the other combo boxes is populated.

To illustrate, the one combo box is named ''OracleAccountNumber''. Once it has an account number, I want the text box, ''Group'', to automatically update with its assigned group.

I have a table named ''Accounts'' where all Account-Group combinations are stored. Maybe the code I was presenting was the wrong way to go about it.

Does that clear it up? At the end of the day, I don''t want the group to be something that is chosen by the user, but I still want the user to be able to see the Group listed on this form.

Thanks for the response.


我给你的教程没有解决这些问题。级联组合框至少应解决第一部分。
Do the tutorials I gave you not solve these problems. The cascading combo boxes at least should solve the first part.