ComboBox - Style 2 - Dropdown List 
Author Message
 ComboBox - Style 2 - Dropdown List

Please, if someone could help me with this problem, I would appreciate very
much.

I have many Combo box (Style 2-Dropdown list) in my project, but some of
them,
it is not a required field, therefore the data in the table could have ""
null or empty.
but if I try to retrieve these fields, I get a message in the combo box
text:
"text property is read only", if I use Style 0 - Combo box default I can't
lock the
text field to just a predetermined options, i.e. the user would have the
option to
type in the text box, what I don't want him to do it.
Any Suggestion, would be appreciated.

Thanks,




Tue, 07 Sep 1999 03:00:00 GMT  
 ComboBox - Style 2 - Dropdown List

On Fri, 21 Mar 1997 19:57:34 -0800, "Carlos Shoji"

Quote:

>Please, if someone could help me with this problem, I would appreciate very
>much.

>I have many Combo box (Style 2-Dropdown list) in my project, but some of
>them,
>it is not a required field, therefore the data in the table could have ""
>null or empty.
>but if I try to retrieve these fields, I get a message in the combo box
>text:
>"text property is read only", if I use Style 0 - Combo box default I can't
>lock the
>text field to just a predetermined options, i.e. the user would have the
>option to
>type in the text box, what I don't want him to do it.
>Any Suggestion, would be appreciated.

>Thanks,



There are various ways to do this, but the easiest is to check the
ListIndex of the combo box to see if an entry has been selected.

For example:

If cmbCountry.ListIndex <> -1 Then
        recCountry.Fields(0).Value = cmbCountry.Text
End If

If the user had typed in any old {*filter*}into the combo box, then the
ListIndex property will have a value of -1.

Hope this helps,

Karl



Wed, 08 Sep 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ComboBox: Style(2 - DropDown List), change value?

2. Combobox (Dropdown List: Style=2)

3. ComboBox with Style set as DropDown List: Problem.

4. Checkmark in Dropdown List Style Combobox

5. ComboBox - Dropdown List Style

6. VB6: ComboBox with .Style Dropdown List not maintaining .ListIndex setting

7. Dynamically creating combobox with Style=2 - Dropdown List?

8. ComboBox (Style -> Dropdown List) Change() event

9. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

10. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

11. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

12. Key Press in ComboBox when style is DropDown is not working

 

 
Powered by phpBB® Forum Software