What does error -2146697208 from URLDownloadToFile(0, URL, LocalFilename, 0, 0) mean?

Rob4077 used Ask the Experts™
Can anyone tell me what the meaning of the return code  -2146697208 when I run URLDownloadToFile(0, URL, LocalFilename, 0, 0) means?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Error (-2146697208)
AccessError (-2146697208)
both return
Application-defined or object-defined error so no help there.

If you have error handling in the routine, disable it and see what the Access default handler displays.


Thanks for the answer. Trying your suggestion is going to be tricky because it happened once at one of 90 installations running the code. I will see if it keeps occuring at this location and pursue it from there.
Try logging the error and have the database email it to you. See: www.thenelson.name/#LogErrorsDemo

You're welcome.  Glad to help and thank you very much for the points with "A" grade!

Happy computing!



Hi Nelson. Thanks for the link to the error routine but I already have one that is similar to yours. The problem I experienced here comes from the Return code when I use the following code. I guess what you're suggesting is that instead of using a return code I take it away and let the code go into error and see what that error is.
lRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial