If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Compare a control value and a List Box value
I need to check to see if the value from my control is also in the first
column of my list box. Something like: If me. MyControlvalue = listBox.column(1) then do whatever... How do I do this? Thank you, Silvio |
#2
|
|||
|
|||
Compare a control value and a List Box value
If Me.SomeControl = Me.MyListBox.Column(1) Then
'some code here... End If Keep in mind however that the Column property of a list box uses a zero based index, so the first column is actually Column(0), the second is Column(1), etc. -- _________ Sean Bailey "Silvio" wrote: I need to check to see if the value from my control is also in the first column of my list box. Something like: If me. MyControlvalue = listBox.column(1) then do whatever... How do I do this? Thank you, Silvio |
Thread Tools | |
Display Modes | |
|
|