If your field is alphanumeric, then in the code as per my example, just replace this line:
DoCmd.OpenForm "frm_Employee", , , "EmployeeID = " & Me!EmployeeID
with:
DoCmd.OpenForm "frm_Employee", , , "EmployeeID = '" & Me!EmployeeID & "'"
Note the extra single quotes.