ComboBox ItemData

  • Thread starter Thread starter Bryan Hughes
  • Start date Start date
B

Bryan Hughes

Hello,

I know how to set the default value of a cbo to a particualr row using:
Me.cboName.DefaultValue = Me.cboName.ItemData(0)

My question is, can you move to the next ItemData the cbo is currently on
using an event trigger?
Example:

User selected Me.cboName.ItemData(3) after they lostfocus on a textbox the
cbo would move to Me.cboName.ItemData(4).

Is this possible?

-Bryan
 
This is one way to do what you seek. Put this code in the procedure for the
desired event:

Me.cboName.Value = Me.cboName.ItemData(Me.cboName.ListIndex + 1)
 
Back
Top