ComboBox selection question

  • Thread starter Nick via AccessMonster.com
  • Start date
N

Nick via AccessMonster.com

Hello all,

This may be fairly simple but I am stuck. Is there a way to select the first
item in the list in a ComboBox from VBA? I have a form that has a ComboBox;
the user selects the ComboBox to populate a subform with existing data. I
just want the combo box to have the first item selected and populate the form
during the Form_Load event.

Any suggestions would be greatly appreciated.

Thanks in advance,
Nick
 
N

Nick via AccessMonster.com

And, like usual, I figured out the problem right after posting... for anyone
wondering, I was trying

Me.Combo80.ItemData(0)
.SelText(0)

And other things like that.. it turned out to be just

Me.Combo80 = Me.Combo80.ItemData(0)


Ah well.
 

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