DLookUp in a Query

D

DS

I want to use a DLookup in a Query. The table that the ChkServer is coming
from is in the Query, However the tblEmployees is not. Here is the field in
the Query.

SERVER: DLookUp("[EmpFirstName] & "" "" &
[EmpLastName]","tblEmployees","EmployeeID=tblChecks.ChkServer")

It's saying that it can't find tblChecks.ChkServer

Any help appreciated.
Thanks
DS
 
D

Duane Hookom

Try:
SERVER: DLookUp("[EmpFirstName] & ' ' & [EmpLastName]", "tblEmployees",
"EmployeeID=" & tblChecks.ChkServer)

This assumes EmployeeID is numeric. If it is text, try
SERVER: DLookUp("[EmpFirstName] & ' ' & [EmpLastName]", "tblEmployees",
"EmployeeID=""" & tblChecks.ChkServer & """")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

UnMatched Query 3
Joining 2 Queries 3
UNION QUERY (Sorting) 2
UNION SELECT Problem 2
SubQuery Problem 1
DLookUp 4
From External Database 5
DLookUp 2

Top