Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unselect query

Status
Not open for further replies.

Megahurtz

MIS
Aug 30, 2001
12
US
OK I know this is a easy one I am just stumped on it and can't find any good info in access help
I have
Master table Contains All users (CN=key field)
Active table Contains Active users (CN has multiple user entries)
both join on CN

How do I query for the the non-active users?

I have tried Not and <> in Master.CN for criteria example: <> [Active]![CN]

I have also tried as an expression

I still seem to be getting 311 ( Active records ) or
924 ( Master records) I need the difference of 613 records in a make table query called Inactive

Thanks in advance

 
Hi!

Make a new query and use the Find unmatched query wizard. That should step you through the process.

hth
Jeff Bridgham
 
Thanks, That worked perfectly!!! Is Null was the ticket :p

I usually do all my own queries by hand or use SQL code and convert that !!

-Mega-
 
Wouldn't it be better to have just one table and add a field whether or not they were active or not? Terry M. Hoey
 
It would certainly be easier to maintain Terry!! Joe Miller
joe.miller@flotech.net
 
I would have to agree with both of you on that one! But before I recommended it to Megahurtz, I would want to know what was meant by multiple user entries in the active table. It sounded like a one-to-many relationship so that's why I gave the answer I did. But I should have verified that before answering.

Jeff Bridgham
 
Hey Jebry, no problem at all with the solution you gave. I just mentioned this because if it is this difficult to get this simple query problem solved, what is it going to be like when they have to do something complex with the data? Terry M. Hoey
 
This DB wont get complex

I was tasked with extracting out a list of users who have registered to a particular website but have not hit hte site since they recieved their login/pwd

What I had was a table of all reg users CN and a table on CN's that hit the site. It is one to many relationship but this was just for a ad-hoc report for a manager while his reporting tools were being developed. He wanted to follow up with people who registerd but haven't visited.

Thanks to all of you for your input
I am glad i happened upon this site yesterday |-0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top