Hi,
I am running a query which includes an EmployeeID field contained in table "Customers".
I would like to do a lookup to another table (Staff)which is not linked to "Customers" which contains the fields StaffID and StaffName in order to drop the Staff_Name into this query.
This involves identifying EmployeeId in the query, finding a match in the Staff table and then dropping the Staff_Name into its own column.
I have tried using dlookup however when I write the following expression :
Dlookup ("[Staff_Name]", "[Staff]", "[EmployeeID]=" & [Staff].[StaffID]
I get an error saying that the expression is typed incorrectly or may be too complex and an Enter Parameter prompt.
Im sure there is an easier way of doing this. Can anyone help ?
I am running a query which includes an EmployeeID field contained in table "Customers".
I would like to do a lookup to another table (Staff)which is not linked to "Customers" which contains the fields StaffID and StaffName in order to drop the Staff_Name into this query.
This involves identifying EmployeeId in the query, finding a match in the Staff table and then dropping the Staff_Name into its own column.
I have tried using dlookup however when I write the following expression :
Dlookup ("[Staff_Name]", "[Staff]", "[EmployeeID]=" & [Staff].[StaffID]
I get an error saying that the expression is typed incorrectly or may be too complex and an Enter Parameter prompt.
Im sure there is an easier way of doing this. Can anyone help ?