Results 1 to 3 of 3
  1. #1
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68

    Unhappy IPAddress LIKE


    Hi. I want to open a database from a location where the location is different depending upon the IP Address of the computer. I have been trying to use the "LIKE" operator in VBA to do this, with no luck. I have no idea what I am doing and do not even know if I can use the function GetIPAddresses OR set db/open database here ...thank you for any assistance you can provide!!

    If GetIPAddresses() Like "*" & PMB & "*" Then


    Set db = OpenDatabase("Z:\STS\Start.STracking.DB.accde")

    elseif GetIPAddresses() Like "*" & SE & "*" Then

    Set db = OpenDatabase("goodledrive:\STS\Start.STracking.DB. accde")


    End If

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    What is GetIPAddresses?

    I do not believe this is a built in function.

  3. #3
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68
    A function to get the IP address....not a built in.

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

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