keith_shoaf
New Member
- Joined
- Oct 8, 2014
- Messages
- 39
Hello,
I am trying to build a query in Access 2010 that will return all AVAILABLE ID's. What I have so far: Two tables (tblTID and tbUsers). tblTID contains 2 fields: ID (primary key, auto assigned, 1 through 2285) and TID (Terminal ID values, DODPBAS01). tblUsers contains 27 fields including STATUS, Name, TID, and various admin fields. I need a query that will list the unused TIDs from tblTID based on the STATUS field on tblUsers.
For reference:
tblTID
| ID | Terminal ID |
| 1 | DODP8671 |
| 2 | DODP5879 |
| 3 | DODP4857 |
|and so on..... 2285 total available Terminal IDs
tblUsers
| STATUS | Name | ID | TID |
| ACTIVE | Doe, John | ABCD | DODP5879 |
| DELETED | Doe, Jane | EFGH | DODP4857 |
and let's say there are 25 users listed
I need a list that will show me all Terminal IDs from the first table that do not have an ACTIVE status on the second table.
Thank you in advance for any assistance!!
I am trying to build a query in Access 2010 that will return all AVAILABLE ID's. What I have so far: Two tables (tblTID and tbUsers). tblTID contains 2 fields: ID (primary key, auto assigned, 1 through 2285) and TID (Terminal ID values, DODPBAS01). tblUsers contains 27 fields including STATUS, Name, TID, and various admin fields. I need a query that will list the unused TIDs from tblTID based on the STATUS field on tblUsers.
For reference:
tblTID
| ID | Terminal ID |
| 1 | DODP8671 |
| 2 | DODP5879 |
| 3 | DODP4857 |
|and so on..... 2285 total available Terminal IDs
tblUsers
| STATUS | Name | ID | TID |
| ACTIVE | Doe, John | ABCD | DODP5879 |
| DELETED | Doe, Jane | EFGH | DODP4857 |
and let's say there are 25 users listed
I need a list that will show me all Terminal IDs from the first table that do not have an ACTIVE status on the second table.
Thank you in advance for any assistance!!