Solved

Combobox won't let me select

Posted on 2006-11-03
9
195 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?
0
Comment
Question by:RealSnaD
  • 4
  • 3
  • 2
9 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 17868350
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
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 17868357
Private Sub Form_Current()
    me.combo25.rowsourcetype="Value List"
    me.combo25.rowsource="Occupied;Unoccupied"
End Sub
0
 
LVL 7

Author Comment

by:RealSnaD
ID: 17868358
checked. enabled - yes, locked - no.
0
 
LVL 7

Author Comment

by:RealSnaD
ID: 17868427
Haha, I had Allow Edits set to No in my form. That was the problem. capricorn1, thanks  for the advice.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 61

Expert Comment

by:mbizup
ID: 17868465
RealSnaD,
> I had Allow Edits set to No in my form.
I think that was closer to my post...
0
 
LVL 7

Author Comment

by:RealSnaD
ID: 17868483
Oops, sorry mbizup. I thought the first person who replied was also capricorn1. I'm really running late. That's why. Sorry.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 17868534
RealSnaD
request to reopen the q from CS
0
 
LVL 7

Author Comment

by:RealSnaD
ID: 17873949
mbizup, thanks.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 17873954
Glad to help out.  
Thank you and Rey for setting it straight.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now