Avatar of LearningToProgram
LearningToProgram

asked on 

Creating a web browser control in an Access Form that uses Firefox

I need to embed a web browser in a Form in Access 2007 so that a web page opens inside the form (Without a browser opening up outside of Access).
I've done this  using the Active X control, but that uses Internet Explorer.
The website I need to access only works with Firefox. Is there anyway to do this with Firefox? So that the Firefox browser opens a web page inside of the Access Form?
Microsoft Access

Avatar of undefined
Last Comment
LearningToProgram
ASKER CERTIFIED SOLUTION
Avatar of logic_chopper
logic_chopper

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Jeffrey Coachman
Try changing the Class Property of the WebBrowser control from:
Shell.Explorer.2
to:
Shell.FireFox.2
Avatar of LearningToProgram
LearningToProgram

ASKER

Hi, I tried changing the class to shell.firefox.2, but it still opens with Internet Explorer.
Do I need to change the OLE Class from Microsoft Web Browser to something else?
Thanks
Paul
How are your detecting what version the web browser is opening under?
I don't know of many websites that "Only" appear when accessed via FireFox.

In other words can you clearly define what: "only works with Firefox." ...means specifically with regard to opening the website and viewing the site.
Then clearly explain what Firefox allows you to do that IE does not.

Is this a website you can post a link to here, so that we can try to replicate this issue?

SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of LearningToProgram

ASKER

Hi TheHiTechCoach,  no I don't  know how to install the Mozilla Activex Control
 Can you tell me how to do this?
Thanks,
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
LearningToProgram,

What you need is in the  link in the first reply by logic_chopper
...oops


Jeff
Avatar of LearningToProgram

ASKER

Ok, sorry, I had missed the first post about installing the Mozilla ActiveX control.
So I did that now, (I downloaded Mozilla ActiveX Control 1.7.12, then  ran it, then did this:
Type "regsvr32 mozctlx.dll", which succeeded.
I then put the mozilla control on my form.

I put this in the on Enter event of the form:

Private Sub MozillaBrowser4_Enter()
Me.MozillaBrowser4.Navigate "http://www.google.com"
End Sub

When I open the form now all I get is a white box where the browser should be.  (When I'm in design mode for the form, and I click on the form where the browser should be, it turns bright green and says "Miozilla Control" .
Any ideas on what I'm doing wrong?


<I put this in the on Enter event of the form:>
No, you put it in the On Enter event of the browser control.

You should instead put this on the Open event of the "Form", just to verify that it works...
Avatar of LearningToProgram

ASKER

Okay, we're making progress
 now it's giving the error message, "browser in not in a valid state"
SOLUTION
Avatar of logic_chopper
logic_chopper

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of LearningToProgram

ASKER

Excellent!  So I put the navigate code in a button, and everything works now Except--the size of the browser in only about 2" by 2", even though the size of the control on the form is over 10" wide. Any ideas on how to make the browser fill the full space?
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of LearningToProgram

ASKER

Thanks for all of the help!!
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo