Can anyone help me figure out how to add a browser/address bar to navigate through websites on my access form. I managed to make the website work on a form using ActiveX Webbrowser Control. But I don't know what to do to be able to navigate.
I seem to almost have this I think. I utilized this code in the "On Enter" event:
Private Sub TxtLinks_Enter()
On Error Resume Next
If Len(Me!txtLinks) > 0 Then
Me!WebBrowser4.Navigate Me!txtLinks
End If
End Sub
The problem with the above code is that I can't keep my cursor in the text box to write the web address. If I hit backspace, oddly enough it goes to the webpage I originally typed before entering the code. What do I do? What's wrong with the above?
you could try to create the text box and have the code run "afterupdate" instead on "on enter"
that may help you with your prob
I realize though that on some websites that you type in will work and some websites you try to go to will only bring you back to the original page that you started and when you hit the backspace it will take you to the intened website.
example:
default page = google.com
you want to go to hotmail.com
you type in hotmail.com in the textbox area
and you press enter and it will take you to hotmail.com for a moment and then take you back to google.com
only when you press the backspace does it take you to hotmail.com
another example where the script works correctly is if you type in aol.com I don't have a prob getting there.
I am not sure why it does this and I am currently looking to see why if you figure it out let me know
sorry I couldn't help you further but if I get any info I will let you know.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.