Results 1 to 2 of 2
  1. #1
    stal is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Location
    Singapore
    Posts
    1

    Unhappy Problem while import IP Address column

    I am doing a simle Auto import of multiple csv files, 2 of the column I import is filled with IP Addresses value.


    once I do the import, after checking the table I realize that the entire IP Addresses values are cut, for example
    the real value is 192.113.13.80 and in the table I see 192.1131 this applicable for both the column and the entire rows. all other colomn imported correctly.
    but, If I do a manual import for one of the files it being imported successfully. what can be the reason of the problem with the IP Address?

    here is the code I use:

    Dim f As Object '//File Object
    With CreateObject("Scripting.FileSystemObject")
    For Each f In .GetFolder("D:\Download\Msg\").Files
    DoCmd.TransferText acImportDelim, , "Temp", f.Path, True, ""
    Next f
    End With

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I'm not certain of this - but just a suggestion . . .
    It looks like Access is expecting the field to be a numeric field and it is importing it as ##.#### and leaving out the rest?
    Again . . . not sure about that since I have never had this problem. But just looking at what Access DOES put in the field, looks like it may be interpreting the field as a numeric/decimal value.

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

Similar Threads

  1. Delete first row and Column for excel import
    By kazman101 in forum Import/Export Data
    Replies: 1
    Last Post: 07-18-2011, 06:53 AM
  2. csv import second row contains column headings
    By dr_patso in forum Import/Export Data
    Replies: 1
    Last Post: 07-16-2011, 03:56 PM
  3. Replies: 1
    Last Post: 10-07-2009, 08:15 AM
  4. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 PM
  5. Import Lotus Notes address book into a MS Access table.
    By acheo in forum Import/Export Data
    Replies: 0
    Last Post: 02-19-2007, 02:43 PM

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