J
Jer
Howdy-
I'm fairly new to access (very new to VB), and I have not been able to
figure out something extremely basic that's going to make me look stupid. My
guess is that I'm completely missing something here, but here it goes:
All I want to do is lookup the index of a specific text item in a
listbox/combobox. Is there some native way to do this without a lot of code?
For example, we have the following listbox (and according indexes):
index text
---------------
0 JOHN
1 JANE
2 FRED
3 BILLY
For complexity, let's say I have a few columns:
ID, NAME, NICKNAME, ADDRESS, etc.
But I have all the columns other than NAME hidden (0";1";0";0";etc).
And of course, the ID is bound.
How do I lookup the index (not ID, but INDEX) of a specific NAME in the
LISTBOX?
For example, how would I lookup the index of FRED (and likewise have a value
of 2 returned for the index).
Is there a function where you can COMBOBOX.INDEXOF(column, value) and get
the index back?
Any help anyone can provide would be very, very much appreciated.
Most Sincerely,
JC
I'm fairly new to access (very new to VB), and I have not been able to
figure out something extremely basic that's going to make me look stupid. My
guess is that I'm completely missing something here, but here it goes:
All I want to do is lookup the index of a specific text item in a
listbox/combobox. Is there some native way to do this without a lot of code?
For example, we have the following listbox (and according indexes):
index text
---------------
0 JOHN
1 JANE
2 FRED
3 BILLY
For complexity, let's say I have a few columns:
ID, NAME, NICKNAME, ADDRESS, etc.
But I have all the columns other than NAME hidden (0";1";0";0";etc).
And of course, the ID is bound.
How do I lookup the index (not ID, but INDEX) of a specific NAME in the
LISTBOX?
For example, how would I lookup the index of FRED (and likewise have a value
of 2 returned for the index).
Is there a function where you can COMBOBOX.INDEXOF(column, value) and get
the index back?
Any help anyone can provide would be very, very much appreciated.
Most Sincerely,
JC