LindaLooUK
Registered User.
- Local time
- Today, 15:16
- Joined
- Dec 30, 2014
- Messages
- 10
Hi folks
First post here so I hope you'll be gentle with me!
In plain English, I want to select an item in a listbox that has a specified value when I open the form that contains this listbox. Most of the help I've found describes selecting records based on their index value but I want to select an item according to the actual value that's displayed in the listbox.
For example, the first number below is the index value, the 2nd is the number I'm interested in and the 3rd is another column in the listbox:
0 1 12345
1 2 33256
2 4 36280
I'm using the OpenArgs property to pass the value (a long integer primary key) to the opening form but I don't know the syntax or correct terminology for ensuring the specified row is selected in the listbox. At present, using the above example, if I want to select the row with the value 2, it's selecting the 3rd row rather than the 2nd.
Sorry to ramble but I do hope you can help me with this...it's driving me crazy!!
First post here so I hope you'll be gentle with me!
In plain English, I want to select an item in a listbox that has a specified value when I open the form that contains this listbox. Most of the help I've found describes selecting records based on their index value but I want to select an item according to the actual value that's displayed in the listbox.
For example, the first number below is the index value, the 2nd is the number I'm interested in and the 3rd is another column in the listbox:
0 1 12345
1 2 33256
2 4 36280
I'm using the OpenArgs property to pass the value (a long integer primary key) to the opening form but I don't know the syntax or correct terminology for ensuring the specified row is selected in the listbox. At present, using the above example, if I want to select the row with the value 2, it's selecting the 3rd row rather than the 2nd.
Sorry to ramble but I do hope you can help me with this...it's driving me crazy!!
