HardingR2000
Programmer
I have FormA with a combo box. When I select a value from the combo box it is saved in a global variable. I click the OK button on FormA and it opens FormB and closes itself.
When I close FormB the closing process opens FormA again using the following commands:
DoCmd.Close acForm, "FormB", acSaveNo
DoCmd.OpenForm "FormA"
Forms!FormA!comboPipeline = GlobalPipelineValue
This works great. However, when the combo box's dropdown arrow is clicked the displayed list starts from the beginning.
What I would like to happen when I click on the dropdown arrow for the combo box is for the displayed list to start at the location specified in the setting of the value in code line three above.
I have tried setting the DefaultValue property for the combo box using the following:
Forms!FormA!comboPipeline.DefaultValue = GlobalPipelineValue
This only screws up the value displayed in the combo box.
Is it possible to do what I want to do?
When I close FormB the closing process opens FormA again using the following commands:
DoCmd.Close acForm, "FormB", acSaveNo
DoCmd.OpenForm "FormA"
Forms!FormA!comboPipeline = GlobalPipelineValue
This works great. However, when the combo box's dropdown arrow is clicked the displayed list starts from the beginning.
What I would like to happen when I click on the dropdown arrow for the combo box is for the displayed list to start at the location specified in the setting of the value in code line three above.
I have tried setting the DefaultValue property for the combo box using the following:
Forms!FormA!comboPipeline.DefaultValue = GlobalPipelineValue
This only screws up the value displayed in the combo box.
Is it possible to do what I want to do?