?
Solved

Application.ImportXML

Posted on 2004-08-29
2
Medium Priority
?
1,333 Views
Last Modified: 2012-05-05
I am trying to use the following command in VB code in an Access 2003 data project:

Application.ImportXML (filename) acAppendData

I am getting an error when I try to call this code.  Do I need to dim something special?  I can run the command manually under FILE/Get External Data / Import / XML and successfully import the file.

What am I doing wrong?

HELP!!!!!
0
Comment
Question by:StardustMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
WesleySaysHi earned 2000 total points
ID: 11928083
Correct Subroutine to import data and structure of a xml file:

Private Sub ImportXMLFile()

   Const STRUCTURE_AND_DATA = 1

   Application.ImportXML DataSource:="filename.xml", _
       ImportOptions:=STRUCTURE_AND_DATA

End Sub

Regards,

Wesley
0
 

Author Comment

by:StardustMan
ID: 11928144
Thanks so much.

0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question