Results 1 to 2 of 2
  1. #1
    svcghost is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    38

    DoCmd.TransferText acExportDelim Troubles

    Hey guys,

    I'm having trouble exporting an additional column of data to a text file.

    Here is my code:
    Code:
    DoCmd.RunSQL ("SELECT SubscriberKey, AccountNumber, EmailAddress, FullName, SubscriberType, FractionSuiteGroup INTO ExportSubscriberTemp FROM " & vEventID & "_C;")
    DoCmd.TransferText acExportDelim, "ExportSubscriberData", "ExportSubscriberTemp", "C:\Campaigns\" & vEventID & "\subscriber_data.txt", 1
    When I add a column to the SELECT statement, I first get a "SELECT INTO" error that says that the column I added was an unknown column. Even though that column exists in both the SELECTED table and the INTO table. Then when I try to continue with the VBA code, it says recordset not updateable.


    Any ideas? THANKS guys!

  2. #2
    svcghost is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Posts
    38
    Nevermind guys I got it. Fixing this involved an overly complicated task. I had to open the table, export it as a text file, then go into advanced options, click specs, and then find the specification name above, then add a field to it.

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

Similar Threads

  1. TransferText problem
    By rossib in forum Import/Export Data
    Replies: 1
    Last Post: 12-17-2009, 04:57 PM
  2. Replies: 1
    Last Post: 11-10-2009, 03:03 PM
  3. Query troubles
    By dmullins in forum Reports
    Replies: 0
    Last Post: 10-20-2009, 02:17 PM
  4. DoCmd.TransferText only if file is new
    By Coolpapabell in forum Programming
    Replies: 1
    Last Post: 10-14-2009, 01:57 AM
  5. Form calculating troubles
    By Ufalufa in forum Access
    Replies: 0
    Last Post: 11-27-2007, 10:36 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