Solved

Combobox won't let me select

Posted on 2006-11-03
9
196 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

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