Launch unique URL in default browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jerseysbest
    New Member
    • Apr 2007
    • 3

    Launch unique URL in default browser

    OK, I'm relatively new with Access and VB as well, so bear with me, any help is greatly appreciated.

    I want launch a specific URL in a web browser (default browser) from a command button in a form and I need the URL to contain info from the db.

    So basically I need the URL to launch into the browser like this:

    "http://www.website.com/InfoLookup?Form one=DataFromFie ldOne&Formtwo=D ataFromFieldTwo &Formthree=Data FromFieldThree& Query=Submit"

    where "DataFromFieldO ne", and so on, is what I have.

    Is this doable? Is there any code like this around I can work with?
  • ansumansahu
    New Member
    • Mar 2007
    • 149

    #2
    Originally posted by jerseysbest
    OK, I'm relatively new with Access and VB as well, so bear with me, any help is greatly appreciated.

    I want launch a specific URL in a web browser (default browser) from a command button in a form and I need the URL to contain info from the db.

    So basically I need the URL to launch into the browser like this:

    "http://www.website.com/InfoLookup?Form one=DataFromFie ldOne&Formtwo=D ataFromFieldTwo &Formthree=Data FromFieldThree& Query=Submit"

    where "DataFromFieldO ne", and so on, is what I have.

    Is this doable? Is there any code like this around I can work with?

    Yes you can do this by using the Internet transfer control in your application.
    Select Components -> Microsoft Internet Transfer Control

    Use the following syntax.
    Inet1.OpenURL (URL, DataType)

    URL can be the defined URL by you.

    Comment

    • jerseysbest
      New Member
      • Apr 2007
      • 3

      #3
      Originally posted by ansumansahu
      Yes you can do this by using the Internet transfer control in your application.
      Select Components -> Microsoft Internet Transfer Control

      Use the following syntax.
      Inet1.OpenURL (URL, DataType)

      URL can be the defined URL by you.
      Thanks for the reply,

      Access is telling me that I "don't have the license required to use this ActiveX control" when I try using the Microsoft Internet Transfer Control.

      Comment

      Working...