Question : ON change run a query

experts,

I have a form and I need to run a query on a change of the form.  
 DoCmd.OpenQuery "qryUpdateEUNameMS"

I see that there is no "on change" event of a form but there is an "on change" event of a field so im not sure where to put this?

thank you

Answer : ON change run a query

test this

place this code in the current event of form "frmMilestones"

Private Sub Form_Current()
If Me.NewRecord Then
    Me.EndUserID = Me.Parent.cboEndUserID
End If
End Sub
Random Solutions  
 
programming4us programming4us