Results 1 to 4 of 4
  1. #1
    rtaman is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3

    Automatically Export to an Xml file

    Hi there,

    We have an Access 2013 database containing 3 tables which we would like to export to 3 XML files automatically.

    I have created Saved Exports but I am wondering if there is some way I can create a Macro / VB Code or a batch file that I can either run from within software or run on a scheduled task to automate the process.

    To recap; I need to;



    1) Export all data from 3 tables within an Access Database to an XML files
    2) Overwrite any existing XML files (i,e not ask the user each time if they want to overwrite)
    3) Automate the process

    Thanks very much in advance.
    Regards
    Rita

  2. #2
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Application.ExportXML is what you need.

  3. #3
    rtaman is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3
    Quote Originally Posted by cyanidem View Post
    Application.ExportXML is what you need.
    Thank you very much - I will try that.

  4. #4
    rtaman is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    3

    Creating a VBA file

    Hi there

    I have created a Visual Basic module within my Access 2013 database which I would like to run as a Batch file from an Oracle program.
    The following is the module and it correctly exports the data in my Access table to an XML file when I run it from within Access.

    Sub ExportVatCodes

    ' Export the contents of the Tax_Code table to an XML file.

    Application.ExportXML ObjectType:=acExportTable, DataSource:="TAX_CODE",
    DataTarget:="C:\AccessXML\Vat_Codes.XML”

    End Sub

    I am unsure of the next step to creating a batch/VBS file.
    Any help would be greatly appreciated.
    Thanks in advance

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

Similar Threads

  1. Replies: 1
    Last Post: 10-29-2015, 07:03 AM
  2. Export Access table data to flat file (txt file)
    By edmscan in forum Import/Export Data
    Replies: 3
    Last Post: 06-17-2015, 12:03 PM
  3. Replies: 13
    Last Post: 12-12-2013, 07:22 PM
  4. Automatically export report as PDF
    By napsterxp in forum Reports
    Replies: 1
    Last Post: 04-08-2013, 04:42 PM
  5. Automatically Export to Excel
    By chachie22 in forum Import/Export Data
    Replies: 2
    Last Post: 07-15-2011, 02:30 PM

Tags for this Thread

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