Solved

Combobox won't let me select

Posted on 2006-11-03
9
197 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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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
 
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

831 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