Automatically select combo box row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two synchronized combo boxes. When I make a selection from box 1 I
want box 2 to automatically select the first row of the updated list (so it
stays in sync). I'm using Access 2003 VBA.

Thanks,

Tony
 
Tony said:
I have two synchronized combo boxes. When I make a selection from box 1 I
want box 2 to automatically select the first row of the updated list (so it
stays in sync). I'm using Access 2003 VBA.


In combo1's Afterupdate event procedure, add a line like
this right after the combo2.Requery:

Me.combo2 = Me.combo2.ItemData(0)
 
Thank you!

Marshall Barton said:
In combo1's Afterupdate event procedure, add a line like
this right after the combo2.Requery:

Me.combo2 = Me.combo2.ItemData(0)
 

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

Back
Top