0

How to NL on a table and filter on a field from another tabl

I already tried to find an answer in here, please apologize if there's something similar already asked and answered.

Somehow I think I already did this before with JET, but can't remember how I solved it. Here is the problem:

I've two tables: table 1 has a number of rows that I want for the report (i'm using an NL function), and in table 1 there is a column "FK" that is a primary key of another table, table 2. In the options I select as a filter (with a lookup) the contents of a second column of table 2.

Now I want the NL function on table 1 to return the rows that satisfy the filtering done on the second column of table 2, using the link between the two tables with the common column "FK".

How do I do that automatically? I know that if I create a second filter in options with all the possible values of FK separated by "|" I could filter the NL function directly, but that's not I need. FK has dozens of possible values…

Please advise! Many thanks for your help.

4 comments

Please sign in to leave a comment.