Hi
I use a query in row source property in table lookup.
Table FilterSets
DocType
Description
Table Probe
Probe Name
DocType
I would like, that the lookup function only shows Filterset descriptions which have the same DocType as the Probe record currently under work
If I use the following query, I get all valid combinations of all DocType in both tables, not only the one of the current Probe record.
I think, I should replace =[Probe]![DocType] by the real value of DocType of the current Probe record.
Any help appreciated
Andreas
I use a query in row source property in table lookup.
Table FilterSets
DocType
Description
Table Probe
Probe Name
DocType
I would like, that the lookup function only shows Filterset descriptions which have the same DocType as the Probe record currently under work
If I use the following query, I get all valid combinations of all DocType in both tables, not only the one of the current Probe record.
Code:
SELECT [19_FilterSets].ID
, [19_FilterSets].DocType
, [19_FilterSets].description
FROM 05_Probe
INNER JOIN
19_FilterSets
ON [05_Probe].DocType = [19_FilterSets].DocType
WHERE ((([19_FilterSets].DocType)=[05_Probe]![DocType]))
ORDER BY [19_FilterSets].description;
Any help appreciated
Andreas
Comment