Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Converting Access Query to XML and sending to Web Server

I need to convert an access query named “ucrdata” to an xml file and then send it to a web server. The query’s parameter value will be the form’s record number from which the code will be called. (Command Button).

0
mickeyshelley1
Asked:
mickeyshelley1
1 Solution
 
RemRemRemCommented:
On the button click event, include:

application.ExportXML(acExportQuery, "<query name being exported>","<filename for XML output>","<filename for schema>")

There are more options available on an ExportXML command (and that last schema one is optional if you don't need it).

Just make sure your ucrdata query has the criteria that filters it to the record value on the form. Essentially:

Forms!<formname>!<recordnumber field name>

-Rachel
0
 
mickeyshelley1Author Commented:
Thank you
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now