Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Query - easy question

Posted on 2015-01-15
2
Medium Priority
?
132 Views
Last Modified: 2015-01-15
Dear experts -
I have a subform driven off a temp table (Table 1). It has a control called 'action_ID'.

Now, I want to create a recordset that will select records from a different table (Table 2), where multiple conditions are met, including limiting the 'action_ID' field in Table 2 to those in the temp table (Table 1).

What is the easiest way to do this?

I was thinking of creating a DAO.Recordset, then doing a select statement on Table 2, and either doing a join or a subquery with Table 1.

Your thoughts are appreciated.
0
Comment
Question by:terpsichore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
bonjour-aut earned 2000 total points
ID: 40551094
If table 1 is a real access table, the a query with inner join will do:

SELECT tbl2.*
FROM tbl2 INNER JOIN tbl1 ON tbl2.action_ID = tbl1.action_ID  where ((.............other restrictions.....................));
0
 

Author Closing Comment

by:terpsichore
ID: 40551124
thank you - this works just fine.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question