Combobox won't let me select

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?
LVL 7
Yury MerezhkovDevelopment Team LeadAsked:
Who is Participating?
 
mbizupConnect With a Mentor 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.
0
 
Rey Obrero (Capricorn1)Commented:
Private Sub Form_Current()
    me.combo25.rowsourcetype="Value List"
    me.combo25.rowsource="Occupied;Unoccupied"
End Sub
0
 
Yury MerezhkovDevelopment Team LeadAuthor Commented:
checked. enabled - yes, locked - no.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Yury MerezhkovDevelopment Team LeadAuthor Commented:
Haha, I had Allow Edits set to No in my form. That was the problem. capricorn1, thanks  for the advice.
0
 
mbizupCommented:
RealSnaD,
> I had Allow Edits set to No in my form.
I think that was closer to my post...
0
 
Yury MerezhkovDevelopment Team LeadAuthor Commented:
Oops, sorry mbizup. I thought the first person who replied was also capricorn1. I'm really running late. That's why. Sorry.
0
 
Rey Obrero (Capricorn1)Commented:
RealSnaD
request to reopen the q from CS
0
 
Yury MerezhkovDevelopment Team LeadAuthor Commented:
mbizup, thanks.
0
 
mbizupCommented:
Glad to help out.  
Thank you and Rey for setting it straight.
0
All Courses

From novice to tech pro — start learning today.