-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MS Access Integration #448
Comments
You'll want to set a reference to Microsoft Scripting Runtime (scrrun.dll) for the Dictionary class. |
For some reason I can't get a working project in Excel to run in Access (2016) due to reasons I don't understand anymore. When creating a WebClient that sends a WebRequest it first stops at the function WebHelpers.RegisterConverter() on this line:
I can solve the issues in this function, RegisterConverter(), by changing the syntax of all calls from this:
To this:
But when I do that,
Which boils down (while stepping through the function calls) to WebHelpers.CreateKeyValue():
With:
Then, when changing the name of the Dictionary module, so it can't be used, I run into the error:
What is the difference over Access 2016 and Excel 2013 on these points that causes these troubles? |
Many thanks for your response! Your example runs fine indeed, key is to don't use the 'dictionary' class module and reference Microsoft Scripting Runtime. But the error 2517 remains in Access fore some reason when using:
I tried 'WebHelpers.ParseXML" also to exclude problems in XMLHelpers mmodule, but that also throws 2517. Can you get the following test to work within Access? Module TestVBAWeb
Module XMLHelpers
|
I kinda pin pointed the problem myself. To get an existing project to work in Access you'll have to name helper functions uniquely, as Access can't resolve (non uniquely named) functions within modules through It appears that It's designed to call a unique function name in (another) database project. In module XMLHelpers, rename:
To:
And call it through Application.Run as: That just means all helper functions in modules would be called through Application.Run should be named uniquely to be used in Access :( In this case:
Now I'm able to ParseXML with:
|
@LeoZandvliet thank you for the insightful question and answer above regarding the difference between the Access and Excel |
Hey Tim - looking at using VBA-Web with MS Access.
Can I use this in MS Access? If so, any guidance?
I've been trying to use some of your sample code but can't figure out the proper Reference required
thanks in advance
Keith
The text was updated successfully, but these errors were encountered: