Results 1 to 2 of 2
  1. #1
    comfygringo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    12

    Importing Date into Tables

    I get the following error in both blocks of code: Field 'F1' does not exist in destination table <myTable>

    For the life of me, I cannot solve this problem.



    Code:
    Private Sub ImportFile(strFullFile As String)
        Application.SetOption "Confirm Action Queries", 0
        Application.SetOption "Confirm Document Deletions", 0
        Application.SetOption "Confirm Record Changes", 0
        DoCmd.RunSQL "Delete * from do_not_call'"
        DoCmd.TransferText acImportDelim, "", "Do_Not_Call", strFullFile, False
    Code:
    Sub ImportExcel(strFullFile)
        Application.SetOption "Confirm Action Queries", 0
        Application.SetOption "Confirm Document Deletions", 0
        Application.SetOption "Confirm Record Changes", 0
        DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "Valid_Numbers", strFullFile, False
    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    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. Importing Tables to access from server
    By masterjk in forum Import/Export Data
    Replies: 4
    Last Post: 12-05-2012, 10:58 AM
  2. Replies: 4
    Last Post: 01-31-2012, 12:42 PM
  3. Trouble importing date from CSV
    By NickP in forum Import/Export Data
    Replies: 1
    Last Post: 01-13-2012, 04:12 AM
  4. Importing data into various tables
    By simba in forum Import/Export Data
    Replies: 1
    Last Post: 01-13-2011, 12:42 PM
  5. Problem with date when importing
    By ds_8805 in forum Import/Export Data
    Replies: 5
    Last Post: 01-27-2010, 02:30 AM

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