Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Oct 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to open file in default web browser? (2000/sp3)

    I've got a database that can output a bunch of data into an HTML file.. It's all generated through code (no reports or pages)...

    How can I have a button open the generated file in the "default browser?" I don't want to hard-code a call to RunApp() with a particular browser or path...

    thanks!
    ..dane

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: how to open file in default web browser? (2000/sp3)

    In the on click event of the button, enter the following :

    Me.MyCommandButton.HyperlinkAddress = "c:MyHTMLFile.htm"

    Replace the name of the button and the name and path of the file with yours.
    Francois

  3. #3
    2 Star Lounger
    Join Date
    Oct 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: how to open file in default web browser? (2000/sp3)

    Awesome! thanks!

  4. #4
    2 Star Lounger
    Join Date
    Oct 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: how to open file in default web browser? (2000/sp3)

    Any way to keep Access from minimizing itself when it opens the hyperlink?

    ..dane

  5. #5
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: how to open file in default web browser? (2000/sp3)

    No. Maybe someone else ?
    Francois

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •