Results 1 to 2 of 2
  1. #1
    tonere is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    22

    Export to Text File Using DoCmd Access 2007

    I have created an export specification "Export-T_GRS_Section_1_Part_B_Upload" that will export an Access table to a text file as a fixed width file.

    I am trying to put the code to do this in a module, and I found the following code, but it returns the run time error 3625 "The text file specification "Export-T_GRS_Section_1_Part_B_Upload" does not exist. You cannot import, export or link using the specification".

    Thank you in advance for reviewing this!

    Function Send2TextFile()
    DoCmd.TransferText transfertype:=acExportFixed, _
    specificationname:="Export-T_GRS_Section_1_Part_B_Upload", _


    tablename:="T_GRS_Section_II_Part_B_Upload", _
    FileName:="W:\Instres\IPEDS\2009-10\T_GRS_Section_I_Part_B_Upload.txt", _
    hasfieldnames:=False
    End Function

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    try using:
    Code:
    docmd.RunSavedImportExport
    instead. if that doesn't work, your spec might not be in the list anymore. check it via the ribbon menu.

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

Similar Threads

  1. Export table from Oracle to Microsoft Access 2007
    By dba in forum Import/Export Data
    Replies: 1
    Last Post: 02-25-2011, 07:05 AM
  2. Access 2007 MDE file
    By BaldFox in forum Access
    Replies: 1
    Last Post: 02-07-2011, 08:38 AM
  3. Access 2007 Export weirdness - need help
    By Longwell in forum Access
    Replies: 1
    Last Post: 10-17-2010, 11:13 AM
  4. Replies: 6
    Last Post: 10-14-2010, 08:33 AM
  5. Replies: 32
    Last Post: 09-16-2009, 10:06 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