• ExportTo File Specification (Access 2002 sp1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ExportTo File Specification (Access 2002 sp1)

    Author
    Topic
    #383127

    I am trying to export a table (using code) to a comma delimited file. Is there a way to designate a predefined file specification when using OutputTo acformatTXT? All I get is a text file (with data) built with dashes and plus signs to look like a table.

    Viewing 0 reply threads
    Author
    Replies
    • #652282

      I don’t know if this is what you want:

      When you export manually to a text file, using File/Export…, the Export Text Wizard has an Advanced… button. Here you can save your export settings as a specification. You can use this specification later if you use DoCmd.TransferText, not if you use DoCmd.OutputTo:

      DoCmd.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName)

    Viewing 0 reply threads
    Reply To: ExportTo File Specification (Access 2002 sp1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: