Refresh Combo Box

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

Guest

I am using a combobox, cboGroupA, on a form, frmAddEvent, to list possible
groups that students would attend in a morning session of class. My problem
is that I may not have all the possible groups listed in the drop menu.

If I have an Add Group Button to open the add a the Add Group Menu, the new
group won't appear on the already open frmAddEvent unless I close the form
and re-open it.

Is there a way to have a combobox requery its table every time you open it
to select a choice?
 
On the OnClick event of the combo you can write

Me.ComboName.Requery
 

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