Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:59:30+00:00 2026-06-05T00:59:30+00:00

possible noob question but humor me here… I get at least two xml files

  • 0

possible noob question but humor me here…

I get at least two xml files pulled in nightly into a separate directory, and these files are named “order_’type1/2′.12345.12345.xml” where ‘type1/2’ can be one of two words, and the number strings vary based on the date. I’m looking for something to pull in (regardless of date string) the xml files that are named “order_’type1’*.xml. From all I gather, VBScript does not necessarily play nice with wildcards, so I’m at a loss here.

I had originally tried the following:

Const acAppendData = 2

Set objAccess = CreateObject("Access.Application")
objAccess.OpenCurrentDatabase ("C:\Path_to_testdb\test.accdb")

Application.ImportXML ("Path_on_the_server_\order_'type1'*.xml"), acAppendData

But for whatever reason, it stopped working (I swear I’m not crazy). So, I looked around more, and happened upon this:

Dim strPathFile As String
Dim strFile As String
Dim strPath As String


strPath = "C:\_where ever file is located_\"

strFile = Dir(strPath & "order_'type1'*.xml")
strPathFile = strPath & strFile

Application.ImportXML strPathFile, acAppendData

I was hoping this would do the trick, however it’s giving me an “Expected end of statement” error on line 1 (ouch!) char 17… At this point I just don’t know enough about the language itself to make educated searches in regard to what I actually need. Any nudges in the right direction would be welcomed!

TLDR: I’m looking to import a single xml file from (possibly) many files that use similar naming conventions (different date strings) using VBScript into Access, appending the data. This will be carried out daily, and the new files that are placed in the directory on the new day will have new namings. It would be great to do this with a wildcard, but VBScript either doesn’t like me, or doesn’t like wildcards!

Again, my VBScript savvy is extremely limited, so any direction/help is greatly appreciated!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:59:32+00:00Added an answer on June 5, 2026 at 12:59 am

    Not sure what your problem is (did not notice any question marks in your post).

    However, error (line 1) is due to the fact VBScript has only one data type (Variant). Read more here: http://msdn.microsoft.com/en-us/library/9e7a57cf(VS.85).aspx

    So your first three lines should be:

    Dim strPathFile
    Dim strFile
    Dim strPath
    

    or, even better:

    Dim strPathFile, strFile, strPath
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a noob question that I will get slated for but here
Ok this is potentially a noob question but here goes. Is it possible to
Possible Duplicate: NSString stringWithFormat adding a percent a noob question here. I have a
GTK+ noob question here: Would it be possible to customize the GtkFileChooserButton or GtkFileChooserDialog
I know this is a noob-ish question but is it possible to fully center
This is a noob question I know, but is it possible to really write
Totally a PHP noob here so sorry for the possibly basic question - here
Tricky question for a bash noob like me, but i'm sure this this easier
This is probably a noob question, but how I've implemented the appendTo() function below
Very noob question, In asp.net can you explain in the simplest possible way what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.