检索一个多访问列表框的选定行的列值 [英] Retrieve column values of the selected row of a multicolumn Access listbox
本文介绍了检索一个多访问列表框的选定行的列值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何可以检索多列列表框选择行的指定列的值?
How can I retrieve the value of specified column of the selected row in a multicolumn listbox?
我填充列表框设置行来源属性与SQL字符串。绑定列的值设置为1。
I populate the listbox by setting the RowSource property with a SQL string. BoundColumn set to value 1.
我可以使用 ListBox.Value
检索绑定列(所选行)的值。但我也希望另一列的值。
I can retrieve the value of the bound column (of the selected row) by using ListBox.Value
. But I also want the value of another column.
推荐答案
使用 listboxControl.Column(intColumn,intRow)
。列和行都是从零开始的。
Use listboxControl.Column(intColumn,intRow)
. Both Column and Row are zero-based.
这篇关于检索一个多访问列表框的选定行的列值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文