Public Function ClearComboIfValNotCurrent(cboBox As Control, Optional SetToVal As Variant = Null) As Boolean
Clear the combo box if the currently selected value is no longer in the list. Returns True if the value was cleared.
Combobox related functions
Clear the combo box if the currently selected value is no longer in the list. Returns True if the value was cleared.
Disable combo if it has exactly one row.
If the only choice is selected, there is no point enabling it
Combo has exactly one row ?
Hide combo if it has exactly one row.
If the only choice is selected, there is no point displaying it
Is the currently selected value still in the list ? (If a combo has been requeried the selected value may not be in the combo list any longer)
Convert the string taken from a control's .Width setting to Twips
Requery the combo box, clear it if the currently selected value is no longer in the list,
If the combo has no selected value, and has exactly one row, select the row.
If the combo has no selected value, select the first row.
Select the row after the currently selected row.
If at the last row, go to the first row and beep.
Select the row before the currently selected row.
If at the first row, go to the last row and beep.