Results 1 to 3 of 3
  1. #1
    cheloto is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    8

    VBA script for transfer text to xml format

    I have the following script:

    DoCmd.TransferText acExportFixed, "AutoSysTabell Eksportoppsett", _
    "AutoSysTabell", "c:\Autosys\AutosysEU-Melding.txt", False

    this makes a file in txt-format just as I wanted with no problems.
    Now I need to make the txt file transferred to XML formal:

    MY failed attempt:

    DoCmd.TransferText acExportFixed, "AutoSysXMLTabell Eksportoppsett", _
    "AutoSysXMLTabell", "c:\Autosys\AutosysXML-Melding.xml", False


    Can anyone see what the correct script should be?



    Thank you in advance for any help.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Nice spot of a crosspost Jack
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 7
    Last Post: 02-24-2019, 05:18 PM
  2. Replies: 2
    Last Post: 02-21-2019, 01:37 PM
  3. Replies: 7
    Last Post: 10-20-2015, 04:51 PM
  4. Replies: 2
    Last Post: 10-16-2014, 12:08 PM
  5. Transfer text
    By nshaikh in forum Import/Export Data
    Replies: 0
    Last Post: 09-11-2008, 03:27 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