We help IT Professionals succeed at work.

Combobox won't let me select

Yury Merezhkov
on
Medium Priority
229 Views
Last Modified: 2012-06-21
Hi,

I have a combobox of Value List type which is populated like this in onCurrent event:

Private Sub Form_Current()
    Me.Combo25.AddItem "Occupied"
    Me.Combo25.AddItem "Unoccupied"
End Sub

The problem is that I simply can't select the value. I can't type in the combobox, nothing! Why is that?
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2013
Commented:
Double check that the combo box is enabled and it's locked property is set to "No"

That code alone should not have that effect.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Top Expert 2016

Commented:
Private Sub Form_Current()
    me.combo25.rowsourcetype="Value List"
    me.combo25.rowsource="Occupied;Unoccupied"
End Sub
Yury MerezhkovDevelopment Team Lead

Author

Commented:
checked. enabled - yes, locked - no.
Yury MerezhkovDevelopment Team Lead

Author

Commented:
Haha, I had Allow Edits set to No in my form. That was the problem. capricorn1, thanks  for the advice.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2013

Commented:
RealSnaD,
> I had Allow Edits set to No in my form.
I think that was closer to my post...
Yury MerezhkovDevelopment Team Lead

Author

Commented:
Oops, sorry mbizup. I thought the first person who replied was also capricorn1. I'm really running late. That's why. Sorry.
CERTIFIED EXPERT
Top Expert 2016

Commented:
RealSnaD
request to reopen the q from CS
Yury MerezhkovDevelopment Team Lead

Author

Commented:
mbizup, thanks.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2013

Commented:
Glad to help out.  
Thank you and Rey for setting it straight.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.