Link to home
Start Free TrialLog in
Avatar of SpaceCoastLife

asked on

Access Combo Box dropping open to right

I have an Access 2002 project and I don't know what I did to an existing combo box control, but now every time I drop the list open, it opens to the right -  instead of directly below the control.  It is the weirdest thing.  What setting am I missing??
Avatar of Nick67
Flag of Canada image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SpaceCoastLife


Excellent!  I was driving myself nuts thinking I 'broke' it.  I ended up lessening the value in List Rows and voila - back to dropping straight down again!  Thanks for your prompt reply.
No Problem!
I'm not sure that's default system behavior - Access will drop the list to the top or bottom, but it should be centered with the textbox portion (or as centered as it can get, based on the ListWidth property).

Look first at the ColumnWidths settings - if you have multiple columns, you should make sure you have a value for each. For example, if I have 3 columns, and I want to hide the first, I'd do this:


That would give me two 1" columns.

Also look at the ListWidth property. If it's set to Auto, try setting it to a value that would display all your columns. In my example above, that would be a setting of 2".

You may also have an issue with your database. Try to Compact/Repair your database.

Also make sure your installation of Windows and Office are fully up to date.

Throw a combobox on a form with enough rows and data that it takes up more than half the screen height.
Demaximize the window.
Push the left edge of the combox just off the viewable area
Click the dropdown.
Watch the dropdown appear to the right of the combobox, if you've done it just right.

I've got a thirty column 12pt font combo that I can make the list appear left, right, up or down depending on how it is positioned.
The system has a preference for certain.
Down is preferred, up is the next preference, but left and right can happen, too.

I see what you mean. I created a combo with a 5 - 6 rows, set ColumnCount and ColumnWidths as appropriate, and I couldn't get it to do anything other than appear below or on top of the textbox portion.

If I increased the ListCount to a large number (say 50 or so), then I see what you're describing. The list appeared on the left, next to the combo.

That kinda confirms my point, however - you can modify the behavior if you can modify the attributes of the Combo. If you MUST have xx number of rows, and if that causes the list to appear in undesirable places, then as you said you simply live with it. If you don't need xx number of rows, then reducing that value (and perhaps modifying a few other attributes) would give you a more desirable result (perhaps).