Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. MS Access 2003 and Exporting in a XML Format

MS Access 2003 and Exporting in a XML Format

Scheduled Pinned Locked Moved XML / XSL
tutorialxmlquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sweep123
    wrote on last edited by
    #1

    I have a series of tables in MS Access 2003 and would like to export a subset of the data out in an XML format. I have come accross the Application.ExportXML facility in MS Access 2003, but is this applicable if I need to export 2 fields from Table A, 3 from Table B and 1 from Table C. My question is, should I write a VBA module to export the data I require or are they an example on how to use Application.ExportXML in the way required. I cant find much documentation on this facility. Sorry if this is the wrong forum. Many thanks

    S 1 Reply Last reply
    0
    • S sweep123

      I have a series of tables in MS Access 2003 and would like to export a subset of the data out in an XML format. I have come accross the Application.ExportXML facility in MS Access 2003, but is this applicable if I need to export 2 fields from Table A, 3 from Table B and 1 from Table C. My question is, should I write a VBA module to export the data I require or are they an example on how to use Application.ExportXML in the way required. I cant find much documentation on this facility. Sorry if this is the wrong forum. Many thanks

      S Offline
      S Offline
      Stephen McGuire
      wrote on last edited by
      #2

      Create a query containing your required fields then use Application.ExportXML with the query as your DataSource. Application.ExportXML _ ObjectType:=acExportQuery, _ DataSource:="YourQuery", _ DataTarget:="Path\YourFile.xml" The above shows the required properties. For a list of additional (optional) properties, see the Access 2003 help file for the ExportXML method. Steve

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups