How do you reference as stored query in your SQL statements? Lets say im building a query that needs data from queryA results. Im guessing I would do something like this:
SELECT a, b, c FROM [tblA] WHERE b IN ([queryA].someField);
This doesnt work, the query is prompting me for a value of someField. I even tried to take out the ".someField" but still not working. What is the proper syntax for this?
Thanks
SELECT a, b, c FROM [tblA] WHERE b IN ([queryA].someField);
This doesnt work, the query is prompting me for a value of someField. I even tried to take out the ".someField" but still not working. What is the proper syntax for this?
Thanks