Ok, I have 2 tables. Tbl_IP_Address contains a listing of all IP Addresses assigned to my org. Tbl_MAC_IP associates the IP Address to the MAC address of a given device. I want to query for those IP Addresses not assigned to a MAC Address. Here is what I have so far:
Any ideas why this query doesn't work? If I remove the Where Clause, the query returns all of my IP Addresses. Not sure why this doesn't work, hoping one of you guru's can point out where I am going wrong! Thanks!
Brenda
Code:
SELECT Tbl_IP_Address.IP_Address_ID, Tbl_IP_Address.IP_Address
FROM Tbl_IP_Address LEFT JOIN Tbl_MAC_IP ON Tbl_IP_Address.IP_Address_ID = Tbl_MAC_IP.IP_Address_ID
WHERE (((Tbl_IP_Address.IP_Address_ID) Not In ([Tbl_MAC_IP].[IP_Address_ID])))
ORDER BY Tbl_IP_Address.IP_Address;
Any ideas why this query doesn't work? If I remove the Where Clause, the query returns all of my IP Addresses. Not sure why this doesn't work, hoping one of you guru's can point out where I am going wrong! Thanks!
Brenda