I have a MS Access 2010 form with a "Company" combobox and an "address" multivalue combobox.
When a company is selected the AfterUpdate event requeries the address combobox so that only addresses relevant to the company are listed. This works perfectly; however the majority of companies only have one address value, so I want to automatically select the address if there is only one.
I have spent a lot of time trying variuos methods such as:
AddressCombo.Value = AddressCombo.ItemData(0)
which brings up "Runtime error 3032" and the following doesn't appear to do anything.
AddressCombo.Selected(0) = True
I know using a listbox is better but I want to know if this can be done with a multivalue combobox.
For those unaware of multivalue comboboxes (MSA 2007+), here is a video of them in action: