Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
WebbrowserControl
Norman M 

10 years ago
I added message box

I simplified code to:

Private Sub Form_Current()
Dim Newasin
Newasin = [AMAZONDEALSF2].[Form]![ASIN]
    WebBrowser5.Navigate "http://www.amazon.co.uk/dp/" & Newasin
    MsgBox "http://www.amazon.co.uk/dp/" & Newasin
End Sub

Let me explain this again.
1. I have subform a field is ASIN it is a continuous form
[AMAZONDEALSF2]
2. I have a form on the form is field asin its control is:
=[AMAZONDEALSF2].[Form]![ASIN]
3. If I click from one record to another on the subform the field asin IN THE FORM updates.
On start the webbrowser loads the first page and give the message box
4. If I click from one record to another on the subform the webbrowser does not update and no message box either. The browser is not refreshing
5. I tried adding this code to the webbrowser
Private Sub WebBrowser5_Updated(Code As Integer)
Dim Newasin
Newasin = [AMAZONDEALSF2].[Form]![ASIN]
    WebBrowser5.Navigate "http://www.amazon.co.uk/dp/" & Newasin
    MsgBox "http://www.amazon.co.uk/dp/" & Newasin
End Sub

It gives 2 message boxes then stops but both for the first asin. Clicking down the subform still refreshes asin on the form but not the browser.

My VBA is totally limited. The issue seems to be that clicking down the subform refreshes asin on the form but not the browser.


Reply from Alex Hedley:

See this Tip
FORM
=Forms!FormName!FieldName
SUBFORM
=Forms!ParentForm!SubForm.Form!FieldName

You'd need to tell the parent to update when the sub forms Current event fires.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 1:53:18 AM. PLT: 0s