After update for combo box

I have a combo box that is based on the value entered in the field above it. It is only working if I hit Shift F9 to update it.

Is there a way to do an "After Update" event that will update the combo query after a value is entered. That way the combo underneath it has the right choices without hitting Shift F9.

Thanks!
cansevinAsked:
Who is Participating?
 
PatHartmanConnect With a Mentor Commented:
If the combo is using a query with criteria as a rowsource and the criteria points to a control on the form, you need code to force the query to run in the AfterUpdate event of the field used as criteria.

Me.cboCity.Requery
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You could requery the second combo form the AfterUpdate event of the first:

Sub FirstCombo_AfterUpdate()
  Me.SecondCombo.Requery
End Sub
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.