S
standish22
OK, I have a record set that has say the following rows
ID Description
----------------------------------------------
1 Apple
2 Book
3 Cat
***************************************************************************************
I have done the following code to populate the listbox
(Design view Properties)
BoundColumn = 1
ColumnCount = 2
TextColumn = 2
(Code)
Set RS = cmd.Execute
Me.lstPayCycles.Clear
Me.lstPayCycles.Column() = RS.GetRows
***************************************************************************************
When the form displays it displays the ID and Description. I've tried
everything to get only the description only to display. See I want to
display the description, but then retrieve the ID, when I need to use
it.
I've tried setting Column Count to 1: That displayed the ID's, even
though TextColumn = 2
Any ideas???
Thanks...
ID Description
----------------------------------------------
1 Apple
2 Book
3 Cat
***************************************************************************************
I have done the following code to populate the listbox
(Design view Properties)
BoundColumn = 1
ColumnCount = 2
TextColumn = 2
(Code)
Set RS = cmd.Execute
Me.lstPayCycles.Clear
Me.lstPayCycles.Column() = RS.GetRows
***************************************************************************************
When the form displays it displays the ID and Description. I've tried
everything to get only the description only to display. See I want to
display the description, but then retrieve the ID, when I need to use
it.
I've tried setting Column Count to 1: That displayed the ID's, even
though TextColumn = 2
Any ideas???
Thanks...