Hi... building a query to demonstrate orphaned/missing records.
In this case, all employees should be assigned an active position.
So I have a query that will show all employees who have bogus (missing) positions....
But I get back results....
I explicitly asked for the PositionID, but because of a Lookup function behind the column, I get this goofy blank pulldown.
Is there a way to show the behind-the-scenes ID?
In this case, all employees should be assigned an active position.
So I have a query that will show all employees who have bogus (missing) positions....
Code:
SELECT PersonnelID, Name, PositionID
FROM tblPersonnel
WHERE PositionID NOT IN (SELECT PositionID FROM tblPositions)
AND PositionID <> 0
ORDER BY PersonnelID
Code:
_______________________________________________
| PersonnelID | Name | Position |
|-------------|-----------------|--------------|
| 60 | John Doe | |
| 231 | Jane Doe | |
| 286 | And so on... | |
|-------------|-----------------|--------------|
I explicitly asked for the PositionID, but because of a Lookup function behind the column, I get this goofy blank pulldown.
Is there a way to show the behind-the-scenes ID?
Code:
_______________________________________________
| PersonnelID | Name | PositionID |
|-------------|-----------------|--------------|
| 60 | John Doe | 83 |
| 231 | Jane Doe | 125 |
| 286 | And so on... | 125 |
|-------------|-----------------|--------------|