That's exactly it, and now I remember that you're the one who shared last time, too. Thanks for the second time, Comment!
Now, I am having a little trouble modifying it to the current needs. I've changed your W and R variables to simple calls to global fields in another DB, since they won't change at all for this project, and B looks fine, too, but I just can't figure out how to make G start and wrap at different places - specifically going from 100 to 250, but if you can explain how to start and end at various numbers that would be fine.
Also, I'm wondering if it is possible to pull these numbers only when necessary, with no break in the sequence. For example, I might create 25 new records, but only 15 need an IP address. The way I have it set up now, the IPs I do assign jump from say .1.19 to .1.25 right along with the number of records. I'm thinking that I can just add a short piece to the beginning of this script that assigns the SerialID field based on the last highest entry (as opposed to leaving it a straight serial number field). Does that sound about right?
Sorry if that's confusing. I really appreciate any help you can offer, especially on the first problem, since I think my solution will work for the second.