G
G Anderson
I have a need to track assigned IP addresses and I've chosen MS Access as my
tool. One of the main reasons for tracking, is so I can issue the next
available address in a given segment.
I have tried a few different variations for the fields, but the sorting is
always an issue. A field which contains the whole address (10.106.17.32)
doesn't sort in IP address order with other IP address records. I have
tried 4 fields, one for each octet of the IP and that doesn't sort by IP
address either. If I use a single field and pad the IP address with zeros it
will sort by IP address, but I don't like it.
I'm confident that MS Access is working as designed, but I'm wondering if I
can program around it, change field type, etc. to get it to work the way I
want it to work.
Any suggestions would be appreciated.
Thanks,
G Anderson
tool. One of the main reasons for tracking, is so I can issue the next
available address in a given segment.
I have tried a few different variations for the fields, but the sorting is
always an issue. A field which contains the whole address (10.106.17.32)
doesn't sort in IP address order with other IP address records. I have
tried 4 fields, one for each octet of the IP and that doesn't sort by IP
address either. If I use a single field and pad the IP address with zeros it
will sort by IP address, but I don't like it.
I'm confident that MS Access is working as designed, but I'm wondering if I
can program around it, change field type, etc. to get it to work the way I
want it to work.
Any suggestions would be appreciated.
Thanks,
G Anderson