ListBox Value Highlighting. Please HELP!

mohsinhq

Registered User.
Local time
Today, 17:02
Joined
Aug 2, 2004
Messages
90
I have a list box which is used as a record selection method [lstPlant]. The values for the list box are based on what the user selects from a combo box [cboPBL].

Does anyone know how to highlight the first value in the listbox once a selection has been made in the combo box? I need this to happen to populate the form with the first value of the list box.

All help would be very much appreciated.

Thanks in advance
 
as far as i am concerned you cannot make any formatting to values in a listbox!
 
can anyone else verify this? if so, is it possible to show the first value of a combo box on load? instead of the blank combo?
 
The combo box is cascaded and is only populated onced another combobox value has been selected. i want the first value of the 2nd combo box to be automatically shown..

Thanks
 
since it is a cascading combo box, you can set the default value by the following:

Me.MyCombo = Me.MyCombo.ItemData(0)

where MyCombo should be the name of your combo
 
thanks for your help.

ive changed my list boxes to combo boxes and used the code you gave.
 
good to hear that you've managed to solve your problem !
 

Users who are viewing this thread

Back
Top Bottom