A family of Microsoft relational database management systems designed for ease of use.
If the field is a Text field, I think your code should work, so let's look for some other reason.
It doesn't matter where the text box is located, but for searching and filtering, the unbound filter/search text box is commonly placed in the header section and the bound data text boxes in the detail section.
After rereading your original post, I just noticed that you said the form's record source query is already filtered to the EmpID field (presumably based on a value from some other form??). Now I'm wondering why a filtered form needs to have the same EmpID entered in an unbound text box and filtered again to the same EmpID. It seems to me that the form's query should have no criteria on the EmpID.
I'm probably missing something in all this, so please try to clarify things for me.