Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webbrowser Control

Status
Not open for further replies.

achiola

MIS
Apr 26, 2001
44
US
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.

Nino
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top