General information
Category:
Forms & Form designer
Title:
Combobox DropDown listbox behavior problem
Environment versions
Network:
Windows 2003 Server
I'm having a problem with a Combobox dropdown listbox and finding this difficult to debug. The behavior while running under the debugger is fine. But outside the debugger it is not working as I expect.
I populate the the listbox with 2 columns. The first column contains the text choices, and the 2nd column contains a ChoiceID for that choice. I have set BoundColumn to 2,BoundTo to .T., and ControlSource to a field in a table where the ChoiceID is stored.
I am using InteractiveChange for the dropdown listbox to handle the user's selection.
For debugging, I set a breakpoint in the InteractiveChange change event for the combobox. Under the debugger, when I get to InteractiveChange, the selection for the listbox is the one that the user has just made, which I expect. However, when I run outside the debugger, when my InteractiveChange code gets control, the selection is not the one the user has just made, but the previous value, the selection before the user made his choice.
Is there some other event that I should be handling instead of InteractiveChange?
Thanks in advance for your help.
Jim
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only