MMIMadness
Technical User
I have an access table with a field containing a ip address as a text field. What I’m trying to do is to write a query which creates a separate column for each octet. I’ve sorted the first column out ok (see below) but I’m having problem getting the second, third and forth. Also each octet can be 1, 2 or 3 characters in length. Any ides?
Thanks
Adam
Thanks
Adam
Code:
SELECT [ip test].IP, Mid([ip],1,InStr(1,[ip],".")-1) AS octet1
FROM [ip test];