• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 751
  • Last Modified:

Error 31521 on Import XML into Access 2007 via VBA


I'm getting error 31521 [Cannot establish connection to server] on the following line, which makes no sense (there is no connection?!) and has previously been working!

Application.ImportXML (strTempDir & sFilename), acAppendData

Open in new window

Access 2007 on Win Svr 2008.

Any ideas?!
  • 2
1 Solution
Two things come to mind:
1) Check the strings to be filled OK (Place breakpoint and use immediate window to print the Dir and filename with the command: ?strTempDir & sFilename)
2) Restart the server to make sure no MS processes are causing havoc.
katerina-pAuthor Commented:
Upgraded to Access 2010; Access 2007 is not listed as compatible with Windows Server 2008.
katerina-pAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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