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!
Access 2007 on Win Svr 2008.
Any ideas?!
Thanks
K.
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
Access 2007 on Win Svr 2008.
Any ideas?!
Thanks
K.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
-
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.