I did end up coming up against having to examine another table, yes, but what I did was create a single field table, populated it with numbers from 1 to 254, then used the following:
Code:
select distinct OneToTwoFiftyFour.ipid from OneToTwoFiftyFour where OneToTwoFiftyFour.ipid not in (select tblIPList.ipid from tblIPList) and OneToTwoFiftyFour.ipid <> {}
OneToTwoFiftyFour is the table with all the numbers I entered, tblIPList is what holds the active data. Where {} is the currently selected IP I want (Scripted into place). IPID should be read as IP Identifier.
What I'm basically doing is writing an ASP/SQL page that will give me a better visual idea of where all my equipment lives on the network, including IP printers, additional routers, computers, and virtual machines. It was getting difficult to remember whats where and keep things organized. I'm the type that organizes a class C network so that servers get one end of the spectrum, routers/network appliances on the other, DHCP gets the center of the spectrum. I've tried to use Google Docs and its just become so cumbersome to see things all at once, and have it maintained easily. So, I'm writing a small DB app. For this particular section, I needed the ability so when I want to move a particular host to another IP (In a 255.255.255.0 netmask) I needed to show all the available IPs that are currently not assigned, instead of allowing myself to duplicate an already used IP.
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=
NEVER send the boss to do a techs job