将项添加到组合框 [英] Add items to a combo box

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

问题描述

我有一个组合框,我希望能够在后端VB中添加项目,但是


使用Forms!搜索!搜索

.Visible = True

.additem应用程序

结束


在添加时给出了运行时错误438项目行。


有人能指出我正确的方向吗?

I have a combo box that I would like to be able add items to in the back end VB, but

With Forms!search!search
.Visible = True
.additem "Application"
End With

gives me a runtime error 438 on the add item line.

Can anyone point me in the right direction please?

推荐答案


我有一个组合框,我希望能够在后端VB中添加项目,但


使用Forms!搜索!搜索

.Visible = True

.additem" Application"

结束


给我一个运行时错误438添加项目行。


有人能指出我正确的方向吗?
I have a combo box that I would like to be able add items to in the back end VB, but

With Forms!search!search
.Visible = True
.additem "Application"
End With

gives me a runtime error 438 on the add item line.

Can anyone point me in the right direction please?



istya。


无法在Combobox上调用AddItem方法,RecordSourceType设置为Table / Query。这是你的情况吗?

Hi, istya.

AddItem method could not be invoked on Combobox which RecordSourceType is set to Table/Query. Is this your case?



istya。


无法调用AddItem方法在Combobox上,RecordSourceType设置为Table / Query。这是你的情况吗?
Hi, istya.

AddItem method could not be invoked on Combobox which RecordSourceType is set to Table/Query. Is this your case?



这是一个空白的组合框,没有连接到任何记录集或表/查询,RecordSourcetype设置为值列表。

It''s a blank combo box that is not connected to any recordsets or table/queries and the RecordSourcetype is set to value list.



这是一个未连接到任何记录集或表/查询的空白组合框,并且RecordSourcetype设置为值列表。
It''s a blank combo box that is not connected to any recordsets or table/queries and the RecordSourcetype is set to value list.



"对象不支持此属性或方法。

你确定Forms!search!search返回你的Combobox ?插入以下代码

"Object doesn''t support this property or method."
Are you sure Forms!search!search returns you Combobox? Insert the following code

展开 | 选择 | Wrap | 行号


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

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