Not sure exactly what you are trying to do here.
Display is a text box or combo or something?
User is supposed to enter their number, and you want to lookup the Employees
table to see if that number is found in the EmployeeID field?
If that's the idea, try something like this:
Dim strWhere As String
strWhere = "EmployeeID = " & Me.Display
If Not IsNull(DLookup("EmployeeID", "Employees", strWhere)) Then

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>> See:
>> Getting a value from a table: DLookup()
[quoted text clipped - 12 lines]
> DoCmd.OpenForm "Invalid ID"
> End If
DS - 30 Sep 2004 15:33 GMT
> Not sure exactly what you are trying to do here.
>
[quoted text clipped - 6 lines]
> strWhere = "EmployeeID = " & Me.Display
> If Not IsNull(DLookup("EmployeeID", "Employees", strWhere)) Then
Thanks for your help. I got it figured out'
DS