combo boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi. I'm using a combo box to select a language for each new record. How can
I set the combo box so that when it is clicked it highlights "English" by
default. The Languages are in alphabetical order at present.

Thanks
 
You can set the Combo's Default property to "English", that way not only that
"English" will be selected when the user press the combo, he won't have to.
 
I have tried this by putting "English" in the default value property under
properties but it isn't working. Would it be better to do it using code?
 
If the combo RowSource contain Number and string, and you store the number in
the table, set the default to the number that represent English and not the
word.

The default will work only for new records, not with records that already
exist but the combo is empty, is that the case you are talking about?
 
Thanks. That is exactly what I was after. In the case of editing records
with a blank combo box is it possible to just highlight English as a default
when combo is clicked?
 
Try this
On the MouseDown event of the combo, write the code

If IsNull(Me.ComboName) Then
Me.ComboName.Text = "English"
End If
 
thanks. it doesn't work but it's not an essential part of my form. The user
will just have to scroll a little bit. thanks for your help
 
Another option will be to create an extra field in the combo, that will make
English to be the first word, and sort it by name.
Something like

Select language From TableName
Order By IIf([language]="English",1,2) , [language]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update combo box 2
Combo Box, list order 3
Cascading Dependant combo boxes 0
combo box filter 1
how to show data only from selected combo boxes ? 0
Sort with Combo box 2
A-Z Sorting Combo 2
Combo Box 3

Back
Top