Talk About Network

Google





Software > Access External data > Re: Im****ting ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 10903 of 11376
Post > Topic >>

Re: Im****ting Multiple XML files into Access 2003

by "pietlinden@[EMAIL PROTECTED] " <pietlinden@[EMAIL PROTECTED] > Aug 7, 2008 at 12:41 PM

On Aug 7, 1:43=A0pm, brianh...@[EMAIL PROTECTED]
 wrote:
> I would like to im****t about 40 XML files all in the same folder with
> the same structure into an Access table without having to im****t each
> one individually. The file names of the XML files are all different,
> and I have no control over that. Anyone know a way to do that?

something like this should work...

Private Sub Command0_Click()

    Dim strFile As String
    Dim strPath As String

    strPath =3D BrowseFolder("Choose a directory...")

    strFile =3D Dir(strPath & "\*.xml")
    Do Until strFile =3D ""
        strFile =3D Dir
        'DoCmd.TransferText acIm****tDelim, "MySavedSpecName",
"DestinationTable", strFile, False
        Application.Im****tXML DataSource:=3DstrFile, OtherFlags:=3D1
    Loop


End Sub
Except you're going to use
 




 2 Posts in Topic:
Importing Multiple XML files into Access 2003
brianhlcl@[EMAIL PROTECTE  2008-08-07 11:43:47 
Re: Importing Multiple XML files into Access 2003
"pietlinden@[EMAIL P  2008-08-07 12:41:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 23:46:07 PST 2009.