![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello world: I'm using Access 2003. I have 2 listboxes. One is a single column. The other has two columns. I can use Dev Ashish's code (thanks Dev!) from the Access MVP Website to accumulate the values from the bound column of a MultiSelect listbox, so that I can include them in a SQL query that will then be the recordsource for a report. This gives me 2 of the 3 values I need to put into the SQL query. However, I can't get the non bound column value from the 2 column listbox. How do I do this? I know that there must be a way. Thanks in advance for any help offered. |
#3
| |||
| |||
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 dim strName as string strName = lst2ColumnListBox.Column(1,lst2ColumnListBox.ListI ndex) Columns are zero-based therefore column 2 is indicated by .Column(1). The selected row is indicated by the ListBox's .ListIndex property. -- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA) -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv iQA/AwUBQcO6M4echKqOuFEgEQI8sQCdH6yKgGxfdiXvhN5zLglcGI hjoggAoKyT FXptOsHrFtJvfHb4M901AKdW =ETJE -----END PGP SIGNATURE----- Alan Lane wrote: Hello world: I'm using Access 2003. I have 2 listboxes. One is a single column. The other has two columns. I can use Dev Ashish's code (thanks Dev!) from the Access MVP Website to accumulate the values from the bound column of a MultiSelect listbox, so that I can include them in a SQL query that will then be the recordsource for a report. This gives me 2 of the 3 values I need to put into the SQL query. However, I can't get the non bound column value from the 2 column listbox. How do I do this? I know that there must be a way. Thanks in advance for any help offered. |
![]() |
| Thread Tools | |
| Display Modes | |
| |