ComboBox ItemData

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
 
K

Ken Snell

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top