Help with WebBrowser ActiveX

jkfeagle

Codus Confusious
Local time
Today, 15:35
Joined
Aug 22, 2002
Messages
166
I'm having trouble getting the WebBrowser ActiveX control to work on a form. Can anyone point me to a resource that would be helpful??
 
Are you using Access 97, 2000 or 2002?

What problems are you having?

Graham
 
Basically, the control goes on the form just fine but I'm not sure how to set it up to invoke the browser when the form is opened. I realize that this is probably a real newby questions but I've just recently started using ActiveX controls. Thanks for any and all help.

Tim,

Thanks for the thread but that's not the kind of problem I'm having. Any other ideas?
 
jk

Using the On_Current event of the form

Code:
Private Sub Form_Current()
    
EnableIfNoNull
    
    'Navigate to the current record's Web site
    'If there's no URL stored in the field ([strWebsite]), then display
    'default website ("http://www.nitlc.com")	

    If Len([strWebsite]) > 0 Then
        wbbWebsite.Navigate URL:=[strWebsite]
    Else
        wbbWebsite.Navigate URL:="http://www.nitlc.com"
    End If
      
End Sub

Where strWebsite is a field in the table that your form is based on, and strWebsite will store website addresses.

HTH

Graham
 
Graham,

Thanks for the code. I did exactly what you suggested (even named the field in the table strWebsite). Now when the form opens I'm getting an 'Object required' error in the line that specifies the web addresses (even the second one). The value in the field shows as being the web address in the table. So what gives?
 
Any chance of zipping and attaching the file, and I'll try and take a look at it.

Graham
 

Users who are viewing this thread

Back
Top Bottom