Link to home
Start Free TrialLog in
Avatar of katerina-p
katerina-p

asked on

Error 31521 on Import XML into Access 2007 via VBA

Hi,

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?!
Thanks
K.
Avatar of ggzfab
ggzfab

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.
ASKER CERTIFIED SOLUTION
Avatar of katerina-p
katerina-p

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of katerina-p

ASKER

-