组合框添加新字段 [英] Combo box adding new fields

查看:77
本文介绍了组合框添加新字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello ppl,


在我的一个表单中,我有一个组合框,每当我创建一个新记录时,它每次都会添加一个新字段,其中包含我输入的值的id之前的记录。


示例:我创建一个新记录,组合中的字段是水。 (在表中水id是2)然后当我开始新记录时,这次组合框上的字段将是水。和2。


任何人都知道为什么?


任何帮助表示赞赏。

干杯,Slaxer13

Hello ppl,

In one of my forms i have a combo box that whenever i create a new record it adds a new field everytime with the id of the value i put in the record before.

Example: i create a new record and the field on the combo is "water" (in the table the "water" id is "2")then when i start a new record the fields on the combo box this time will be "water" and "2".

Anybody have a clue why?

Any help appreciated.
Cheers, Slaxer13

推荐答案

这个组合绑定了,你是否有使用afterupdateevent的代码?
Is this combo bound and do you have code using the afterupdateevent?


是的,它被绑定到一个表。至于AfterUpdate代码如下:
Yes it is bound to a table. As for the AfterUpdate Code is the following:
展开 | 选择 | Wrap | 行号


另一个要查看的地方是'OnCurrent事件,看看你是否正在使用代码设置值。
Another place to look would be in the form''s OnCurrent event to see if you are setting the value using code.


这篇关于组合框添加新字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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