检索多列访问列表框选定行的列值 [英] Retrieve column values of the selected row of a multicolumn Access listbox

查看:28
本文介绍了检索多列访问列表框选定行的列值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在多列列表框中检索选定行的指定列的值?

How can I retrieve the value of specified column of the selected row in a multicolumn listbox?

我通过使用 SQL 字符串设置 RowSource 属性来填充列表框.BoundColumn 设置为值 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).Column 和 Row 都是从零开始的.

Use listboxControl.Column(intColumn,intRow). Both Column and Row are zero-based.

这篇关于检索多列访问列表框选定行的列值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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