• Display Javascript Webpage within Access Form

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Display Javascript Webpage within Access Form

    Author
    Topic
    #471552

    Good morning.

    I am looking to display the following within my access form, how can I achieve this?

    Viewing 1 reply thread
    Author
    Replies
    • #1243712

      Hi Luke!

      I think you will need to drop an ocxWebBrowser control onto your form. Then set the URL in code (based on code by Helen Feddema) :

      On Error GoTo ErrorHandler

      dim appBrowser As Object
      dim strURL as string

      Set appBrowser = Me![ocxWebBrowser]
      Me![ocxWebBrowser].Navigate strURL

      ErrorHandlerExit:
      Set appBrowser = Nothing
      Exit Sub

      ErrorHandler:
      MsgBox “Error No: ” & Err.Number _
      & ” in Form_Current procedure; ” _
      & “Description: ” & Err.Description
      Resume ErrorHandlerExit

      Regards,

      Jules

    • #1243731

      Oops! While cycling I realised I had omitted a key line. You need to set strURL to the address of the web site, before using the variable.

      Sorry about that, but I expect everyone spotted the (non-deliberate) mistake.

      Jules

    Viewing 1 reply thread
    Reply To: Display Javascript Webpage within Access Form

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: