Web Browser Control
How to navigate to a different URL based on a subform value
In this tutorial I will explain how to navigate to a URL based on a Subform value.
There was a question on the Forum asking how to update a Web Browser Control with values from a SubForm.
I've created a simple Table with some dummy data, made a continuous Form from that then added it as a Subform to another Form.
This Main Form has a Web Browser Control (WebBrowser1) and an unbound Textbox (URL)
There's a Tip talking about referencing controls.
In this case we are on the Subform and want to update on the Parent so we can use the
Private Sub Form_Current()
strURL = "https://www.google.co.uk/?q=" & ID
Me.Parent.URL = strURL
Let me know if you'd like any additions.
WebBrowser.accdb (Access 2010 .accdb)
By: Alex Hedley
Click here to sign up for more FREE tips