1. SETUP THE QUERY YOU WISH TO EXECUTE BASED ON THE VALUE OF THE COMBO-BOX
The query must have, in the 'criteria' line of the combo-box field, a reference to the value of the combo-box on your form.
In the query design, put something like this in the 'criteria' line of the combo-box field:
[Forms]![frmFormName]![cboComboName]
([Forms] is the forms collection, and the other two are your form name and your combo-box name.)
2. SETUP THE AFTERUPDATE EVENT TRIGGER FOR THE QUERY
You could execute the query when the user changes the value in the combo-box by using the AfterUpdate event of the combo-box (it kicks-off when the value is changed).
It would look like this:
*********************
Private Sub cboComboName_AfterUpdate()
Dim strQueryName as String
strQueryName = "qryYourQueryName"
'I think you must have this line to save the record, first
DoCmd.RunCommand acCmdSaveRecord
'Then execute the query
DoCmd.OpenQuery strQueryName
End Sub
********************
When you make a new selection in the combo-box, the query will execute, using the new value of the combo-box as criteria.
=============================
EDIT: You must enter the reference to the combo-box on the query exactly as shown or you will get a syntax error. The bracketed elements are separated by exclamation points in:
[Forms]![frmFormName]![cboComboName]
Also, this line was left out of my original AfterUpdate code above, and I have added it above:
strQueryName = "qryYourQueryName"
(I don't think that would cause a syntax error, though.)
I have gotten this to work, using the method and syntax as shown. Try again and I bet you can get it to work.
.