Results 1 to 6 of 6
  1. #1
    tgavin is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    New York
    Posts
    22

    Specification Name

    This code used to work but when I open it in Access 2010, it now wants a Specification Name arguement between the transfer type and the file to export. All I am finding on is that it is the export specs but I have no idea what that means. It won't let me skip the arugument.

    DoCmd.TransferText acExport, "rptCitiTextExport", "C:\Documents and Settings\Terri Gavin\Desktop\" & [Forms]![frmMonth]![txtFolder] & "CitiBank Export.xls"

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    That argument has been there for a while (it's in A2k). It's optional, so you should be able to just leave it blank, like:

    DoCmd.TransferText acExport, , "rptCitiTextExport", "C:\Documents and Settings\Terri Gavin\Desktop\" & [Forms]![frmMonth]![txtFolder] & "CitiBank Export.xls"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tgavin is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    New York
    Posts
    22
    When I leave it blank, I get "The action or method requires a Specification Name argument." Maybe I had it that way in 2002 or 2003, (I have been going back and forth with 02, 03 and 10 depending on client and computer), but now I am suddenly getting that message.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I don't have my machine with 2010 on it handy, so I'll try to look at it later. I can't believe they would have made a specification mandatory. Did I get the extra comma in the right place?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    tgavin is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    New York
    Posts
    22
    It is in the right place. I have used this code on several dbs and never had a problem.

    The current code that exports this file from the Access 97 db (It was originally written in Access 2 and won't convert higher, plus it's a mess from all the people who have played with it in the last 10+ years)

  6. #6
    tgavin is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    New York
    Posts
    22
    Actually the code that is in the Access "rptCitiTextExport", acFormatTXT, network path

    It needs to be an asci file for a Citibank upload. Now that code returns "The format in which you are attempting to output the current object is not available." That is why I was trying to use that export code which I use with other dbs that are exporting queries.

    Any ideas on any of this???

    Thanks

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

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 1
    Last Post: 03-25-2010, 03:12 PM
  3. Modifying an import specification
    By ronzul in forum Import/Export Data
    Replies: 3
    Last Post: 11-12-2009, 05:03 AM
  4. import text specification
    By brunoylupe in forum Import/Export Data
    Replies: 12
    Last Post: 08-09-2009, 04:47 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