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 cannot download the sample file so I went to this without it.
I get a runtime 2465 error debugging to: Me.Parent.URL = strURL

1. I have webbrowser on form. It is webbrowser4
2. I have subform with continuous form.
3. On SUBFORM  I selected on current and inserted
Private Sub Form_Current()
MsgBox Model
    Dim strURL
    strURL = "https://www.stockinthechannel.co.uk/Search?q=" & Model
MsgBox strURL
    Me.Parent.URL = strURL
    Me.Parent.WebBrowser4.Object.Navigate strURL
End Sub


Msgbox x 2 are fine also when I pass from one item to next. It changes the model just error on the  Me.Parent.URL = strURL

4. I added field on from and subform Model

5. So for some reason not accepting  Me.Parent.URL = strURL I commented this line and it worked.


Reply from Alex Hedley:

The tip mentions having two controls on your Form. First being the WebBrowser control called "WebBrowser1", the second being textbox called "URL".
If you don't have a Textbox called URL on your Form then the code will break, also rename your control to 1 or the code to 4.

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/10/2026 6:20:25 PM. PLT: 1s