Hello!
I have problems when I try to use Dlookup in a query. Can anyone tell me what I might be doing wrong?
My qyery is called qryData
I have one table with customerID and CustomerName, and one table with CustomerID and CustomerAdress
The query qryData is supposed to be [CustomerID, CustomerAdress, CustomerName]
I get CustomerID and CustomerAdress from tblAdress, and I want to use Dlookup to get the right CustomerName from tblNames.
This is what i have: Name: Dlookup("[CustomerName]", "[tblNames]", "[CustomerID] = '" & [qryData].[CustomerID] & "'")
This gives me a syntax error.....
Help.....
noccy
I have problems when I try to use Dlookup in a query. Can anyone tell me what I might be doing wrong?
My qyery is called qryData
I have one table with customerID and CustomerName, and one table with CustomerID and CustomerAdress
The query qryData is supposed to be [CustomerID, CustomerAdress, CustomerName]
I get CustomerID and CustomerAdress from tblAdress, and I want to use Dlookup to get the right CustomerName from tblNames.
This is what i have: Name: Dlookup("[CustomerName]", "[tblNames]", "[CustomerID] = '" & [qryData].[CustomerID] & "'")
This gives me a syntax error.....
Help.....
noccy