Link to home
Start Free TrialLog in
Avatar of printmedia
printmedia

asked on

Combo box changes to first entry when end user clicks inside combobox Access 2003 VBA

Hi all.

I have an Access form with a combobox whose row source is set to "Table/View/StoredProc" and is populated in the On Enter event. There are 2 columns with widths (0";1") the first column is the ID and the second is the name, the end user sees the name but when they save the record the ID is what gets saved in the table.

The problem we're having is if the end user enters the combobox via the mouse or tab without clicking on the down arrow it temporarily changes the selected value/text of the combobox to the first entry of the combobox but then it reverts back to the original selected value/text when you leave the combobox.

Any idea how we can stop this from happening?

Thank you in advance.
Avatar of PatHartman
PatHartman
Flag of United States of America image

Do you have code (or a macro) in one of the control's events that is causing this?
Avatar of printmedia
printmedia

ASKER

All I have is the code to load the combobox in the On Enter event.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

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