How requery combobox when click command button on the form?

I have a form that has a command button.  When the user clicks it I want the values in the query behind the combobox to be requeried and update a couple of afterupdate events from the combobox.

This isn't working:

Me.cboSelectBudget_requery
SteveL13Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Dale FyeConnect With a Mentor Commented:
As capricorn1 indicated,

Me.cboSelectBudget.requery

will requery the combo box, but I will not set a value or call the after update event, so if you have a default value you want to use (the first item possibly), you could try:

cboSelectBudget = me.cboSelectBudget.ItemData(0)
Call cboSelectBudget_AfterUpdate
0
 
Rey Obrero (Capricorn1)Commented:
it should be

Me.cboSelectBudget.requery
0
 
SteveL13Author Commented:
Yes.  I'm sorry.  That is what I have and it's not working.
0
 
Rey Obrero (Capricorn1)Commented:
maybe there is nothing to requery.. what is the rowsource of your combo box?
0
All Courses

From novice to tech pro — start learning today.