不在列表中 - 选择新的组合值 [英] Not in list - select new combo value

查看:55
本文介绍了不在列表中 - 选择新的组合值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,


有一些很棒的帮助,在这个论坛上的组合框Not in List事件中,它对我来说很好。我可以识别事件,接受新数据,通过表单添加一些额外的记录信息并重新查询组合框。这会将新信息放入组合框中,但用户仍需要搜索它。如果我添加,Zachery作为按字母顺序排序的组合框的新数据,用户必须向下滚动组合框才能找到它。


那么,有没有办法强迫用于选择的组合框这个场合的新价值?我会的,因为我仍然持有newdata像(aircode)me.combobox = newdata这样的东西会显示在组合框中并允许用户继续前进。不是这样,我还是要从列表中选择它。


我希望这有意义吗?


问候


头盔

Folks,

There''s some great help, in this forum on the combo box Not in List event and it works fine for me. I can recognise the event, accept the newdata, add some additional record info via a form and requery the combobox. This puts the new info in the combobox but the user still has to search for it. If I add, "Zachery" as newdata to my alphabetically sorted combo box, the user has to scroll down the combobox to find it.

So, is there a way to "force" the combo box to "select" this new value on this occasion? I''d though, since I am still holding "newdata" that something like (aircode) me.combobox = newdata would display in the combo box and allow the user to move on. Not so, I still have to select it from the list.

I hope this makes sense?

Regards

Helm

推荐答案

实际上是Helm,确实是你改变选择的方式。

你确定你的代码是没有错误?它可能应该在ComboBox.Requery()之后完成。
Actually Helm, that is indeed how you change the selection.
Are you sure your code was error free? It should probably be done after a ComboBox.Requery().


您好NeoPar并感谢您的回复。


我的主要表单是frmrace13和它的子形式是frrmresults1


Combo26,在子窗体上触发nott in list事件和我打开frmaddhelm与newdata作为openargs。用户添加了一些额外的数据,我关闭了表格


这里是关闭vb ...

Hi NeoPar and thanks for the response.

My main form is frmrace13 and it''s sub form is frrmresults1

Combo26, on the subform fires the "nott in list" event and I open frmaddhelm with newdata as the openargs. The user adds a few extra bits of data and I close the form

Here''s the close vb ...

展开 | 选择 | Wrap | 行号


此组合框是否以文本或数字(例如基础表中的ID)运行...


检查以确保NewData仍在那里并考虑我提到的其他事情。

Does this combo box operate off of text or numeric such as an id in the underlying table...

Check to make sure NewData is still there and consider the other things I mentioned.

Expan d | 选择 | Wrap | 行号


这篇关于不在列表中 - 选择新的组合值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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