选择项目 [英] select items

查看:62
本文介绍了选择项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让产品表格(有你可以选择的项目)和一个Orderdetail表格来添加项目,用一个按钮来选择这些项目,当选择时添加到orderdetail表格。另外,如果您有包含项目的产品表单,则可以突出显示项目,然后单击保存或选择按钮,并在orderdetail子表单中添加您选择的项目。因为现在我正在使用包含其中项目的组合框,并将其添加到orderdetail表单中,但我想要更高级一些。你知道吗。


lee123

is there a way to have a product form (that has items you can choose from) and a Orderdetail form to add the items to with a button to select these items and when selected add to the orderdetail form. anotherwords, if you have a product form with items in it you could highlight the items then click a save or select button and add the items you have selected in an orderdetail subform. because right now i am using a combo box with the items in it and it addes it to the orderdetail form but i want to be a little more advanced. you know.

lee123

推荐答案

你有没有想过尝试一个列表框而不是组合框,这样你就可以选择多个项目?
Have you thought about trying a list box instead of combo box so you can select multiple items?


你知道我没有。但那听起来很酷。你会怎么做呢?请解释。


lee123
you know I haven''t. But that sound cool. how would you go about doing that? Please explain.

lee123


这与使用组合框非常相似。除了可以选择多个值之外,列表框大致相同。访问中有一个选项可将组合框转换为列表框。将组合框放入列表框后,将多选属性设置为扩展。


在代码中,您可以使用ItemsSelected集合迭代所选项目。


这将在每个绑定列中打印数据在即时窗口中选择的行。
It would be quite similar to using a combo box. A list box is much the same except you can select more than one value. There is an option within access to convert a combo box into a list box. Once you''ve made your combo box into a listbox set the multi-select property to extended.

In code you can iterate through the selected items by using the ItemsSelected collection.

This will print the data in the bound column for each selected row in the immediate window.
展开 | 选择 | Wrap | 行号


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

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