Select Records

S

sturner333

I am trying to pick certain recards from one table based on data from another
record.
Table1 has a column of used idNumbers.
Table2 has a column of ALL idNumbers.
I would like to make a QUERY to list all the non-used idNumbers.
Thanks for the help
 
D

Dennis

Put Table2 and then Table1 in the query design grid. Create a join on the ID
numbers and make the join show all records from table 2 and only those from
table 1 where the joined fields are equal. Select the ID number from table2
into your query and set the criteria for it to Is Null
 
K

KARL DEWEY

Select the ID number from table2 into your query and set the criteria for
it to Is Null

Select the ID number from table2 into your query, Select the ID number from
table1 into your query and set the criteria for it to Is Null.
 
S

sturner333

Thanks, that worked

KARL DEWEY said:
it to Is Null

Select the ID number from table2 into your query, Select the ID number from
table1 into your query and set the criteria for it to Is Null.
 
J

John the ScrubMaster

S Turner,

I would very much appreciate a sample of your code that worked for you!

Thank you in advance!

Also please mention which types of server(s) the files are on.

-John d
 
S

sturner333

I did it just the way Karl Dewey described. Here is the SQL code:

SELECT DISTINCT tblPlatformCategories.PlatformID, tblBDP.BDPidShort
FROM tblPlatformCategories LEFT JOIN tblBDP ON
tblPlatformCategories.PlatformID = tblBDP.BDPidShort
WHERE (((tblBDP.BDPidShort) Is Null));
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top