Looking at your where clause I can see the problem.
You're basically displaying two groups of users in your query:
- EmployeeID is empty, company is 'company' and description is 'User Account'
- EmployeeID is NULL
This means that if a user has NULL for EmployeeID, it will be displayed regardless of any other fields.
I would use the following for your situation:
Where (tblADusers.EmployeeID Like '' And tblADusers.Company = 'Company' And
tblADusers.Description = 'User Account') Or
(tblADusers.EmployeeID Is Null And tblADusers.Company = 'Company' And
tblADusers.Description = 'User Account')
Edit: Seems like you figured it out while I was posting
😉