I'm tring to open a form filtered by the selection
of a combo box, this is the code used in the after update event
Dim frm As Form
Dim Criteria As String
If Not IsNull(Me!cmbSelectEmp) Then
DoCmd.OpenForm "frmEmployee"
Set frm = Forms!frmEmployee
Criteria = ("EMP_NUM = '" & Me!cmbSelectEmp.Column(1) & "'"
frm.Filter = Criteria
frm.FilterOn = True
End If
End Sub
when i run this I get this error
Run-Time Error '2001'
You canceled the previous operation.
anybody have any ideas? thanks for any help
of a combo box, this is the code used in the after update event
Dim frm As Form
Dim Criteria As String
If Not IsNull(Me!cmbSelectEmp) Then
DoCmd.OpenForm "frmEmployee"
Set frm = Forms!frmEmployee
Criteria = ("EMP_NUM = '" & Me!cmbSelectEmp.Column(1) & "'"
frm.Filter = Criteria
frm.FilterOn = True
End If
End Sub
when i run this I get this error
Run-Time Error '2001'
You canceled the previous operation.
anybody have any ideas? thanks for any help