-
Feb 28th, 2021, 05:55 PM
#1
Thread Starter
New Member
MS Access WebBrowser.Document
Hi there--
I am using MS Access 2016 and hoping to use the WebBrowser0.Document function. Currently, I am not given an option to use .Document, and I can't figure out why.
Here is my VBA code:
Private Function GetBrowserData1(ByVal FunctionName As String) As String
GetBrowserData1 = WebBrowser0.Document.getElementById("Latitude").Value
End Function
When I run it, I get the error that says "Compile Error: Method or data member not found." and it highlights .Document.
Please let me know how to fix this!
Thank you for your help.
-
Feb 28th, 2021, 09:06 PM
#2
Re: MS Access WebBrowser.Document
Office Development seems like it might get you more of the right eyes on the question, so I moved the thread there.
My usual boring signature: Nothing
-
Mar 1st, 2021, 03:39 AM
#3
Re: MS Access WebBrowser.Document
what is webbrowser0? a webbrowser control? have you navigated to some website for it to contain a document?
what is the parameter functionname? as it does not appear to be used
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 6th, 2021, 08:49 AM
#4
New Member
Re: MS Access WebBrowser.Document
Hi
add watch window in Debugger for WebBrowser0...
and see it is not nothing
is has some propeerties...
-
Mar 6th, 2021, 09:19 PM
#5
Re: MS Access WebBrowser.Document
did you add some webbrowser control to a form in your project?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 12th, 2021, 02:37 PM
#6
New Member
Re: MS Access WebBrowser.Document
Hi, YES
(DBASE, FOX PRO, MS ACCESS 2016, SYMBIAN C++)
-
Mar 12th, 2021, 10:09 PM
#7
Re: MS Access WebBrowser.Document
do you at some earlier point navigate to a website page?
post more of your code, so maybe we can see where a problem might be
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Mar 14th, 2021, 04:34 AM
#8
New Member
Re: MS Access WebBrowser.Document
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|