Hi!
Without seeing your code, I couldn't say why it didn't work. But code that should work follows:
DoCmd.OpenForm "FormName", , , "EmployeeName = '" & NameTextBox.Text & "'"
Of course, you will need to use your specific names for the controls, forms and fields. Please note that it is important to use the .Text in this situation since the value is not updated until the control loses focus.
hth
Jeff Bridgham