Results 1 to 4 of 4
  1. #1
    mchadwick is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    71

    Adding characters to an IP address in a record (100.1.25.25 /32)

    I have a field that contains an IP Address. The ranges vary significantly meaning some of the octecs have 3 characters and some have 1 or 2. Example; 100.2.25.250 and the next record may be 1.20.25.251. I need to add a "/32" to the end of the IP Address. How can I automate this for all the records? I know I can create an update query, but I'm not sure how I can do this. However, I will say for most of the records the IP Address is the only thing in the field. Some of the fields have multiple IP Addresses.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Well, with multiple addresses this becomes complicated. Is this a multi-value field or just a string? If just a string are the addresses separated by ", " (comma and space)?

    Multiple data in one field is something I NEVER do.

    Why don't you just put the /32 in another field? If every address uses the same mask prefix, why bother even saving to table?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mchadwick is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Posts
    71
    That's not a bad idea. The data came from a seperate system (exported into Excel). Some of the fields have only one and would be easy to just add it to the end of those. Others however not going to be easy.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Easy or not depends on answers not given. Multi-value or CSV string?

    However, this is a different type of data and should not be stored in the same field as the address anyway.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need to pull address from first record selected
    By tanyapeila in forum Queries
    Replies: 7
    Last Post: 03-17-2014, 02:55 PM
  2. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  3. Replies: 2
    Last Post: 06-04-2013, 07:57 AM
  4. Adding additional info to a hyperlink address
    By Greyhound in forum Access
    Replies: 4
    Last Post: 07-02-2012, 02:36 PM
  5. Adding a email address on form
    By akhlaq768 in forum Forms
    Replies: 3
    Last Post: 02-07-2012, 09:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums