Web content in a form

  • Thread starter Thread starter Jason McAdams
  • Start date Start date
J

Jason McAdams

I need to find a way to display web content (i.e. a picture from the
internet) for every record in a form. Currently, I'm using the Microsoft
Web Browser control, but I have to click on the control (with the 'On Focus'
event for that control) for the content to update within the control - and
it will in turn erase all web content from every other record. Is there a
way to have the form autopopulate for every record? My event procedure is
listed below:

Private Sub ActiveXctl0_GotFocus()
If Not IsNull(Me.txtMemberID) Then
With Me.ActiveXctl0
.Navigate "http://opi.yahoo.com/online?u=" & Me.txtMemberID & "&m=g&t=1"
End With
End If
End Sub
 
Use a text field in a table to store MemberID. Replace the GotFocus event
code with the same code in the form's Current event. Make sure you give the
form time to load or you will always be erroring out.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Form Refresh 1
Condition navigating between Controls 11
On Exit Event 2
Variable Button Caption (Continous form) 4
PopUp Date Picker Form 4
Access Open Form with WhereCondition 6
Blank Fields in Report 2
Force Validation prior to leaving form. 3

Back
Top