Stefan.Kauw
Registered User.
- Local time
- Today, 05:56
- Joined
- May 31, 2018
- Messages
- 24
Hiya,
The search function already hooked me up to using DLOOKUP for getting a result into a textbox.
For whatever reason it keeps saying the error #NAME?.
I have a table as seen in the attachment as image.
From this table i want to select only 1 column and 1 row.
I do this using this (working) query:
This query works when executing it outside the form. I do get the single result i want.
What doesn't work is when i'm using DLOOKUP. Google eventually teached me the function needs to functions: the column name and the query:
The DLOOKUP code is added into the contorelement source. I tried several thing like using and not using the []. Using and not using the table source like "[Plastic_Partijen]". But it keeps me telling #NAME?.
Google helped me so much already but this one i cant solve....
The search function already hooked me up to using DLOOKUP for getting a result into a textbox.
For whatever reason it keeps saying the error #NAME?.
I have a table as seen in the attachment as image.
From this table i want to select only 1 column and 1 row.
I do this using this (working) query:
Code:
SELECT Plastic_Partijen.[Huidige behandelbeurt]
FROM Plastic_Partijen
WHERE ((Plastic_Partijen.Partijnummer)=[TempVars]![Partijnummer]);
This query works when executing it outside the form. I do get the single result i want.
What doesn't work is when i'm using DLOOKUP. Google eventually teached me the function needs to functions: the column name and the query:
Code:
=DLookUp([Plastic_Partijen].[Huidige behandelbeurt];[q_SelectBehandelbeurtFromPartijen])
The DLOOKUP code is added into the contorelement source. I tried several thing like using and not using the []. Using and not using the table source like "[Plastic_Partijen]". But it keeps me telling #NAME?.
Google helped me so much already but this one i cant solve....
