Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Address database

Status
Not open for further replies.
Jun 20, 2003
40
GB
I'm creating a database that will contain IP addresses, firstly is there a way of masking the entry ie 192.168.1.254, I've tried ###.###.###.### but I need some zero's which doesn't help.

Secondly I need to get the last section of the IP address, x.x.x.254, is there a way of doing this.

Thanks for all your help in advance.

Cheers
 
the "Right" function will get the right side of a string as many characters you specify.
=Right(your data,3)
look it up in the VBA help

also "Instr" function will find an occurance of a character such as the period

x=instr(1,yourdata,".")
also in help file

will return a 4 for the first period you can loop through and find them all.

DougP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top