Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2003
    Location
    Southeast
    Posts
    3

    Unanswered: Open a .htm file with code

    I want to open a .htm file at the end of my code.
    How do you do this
    Thanks

  2. #2
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    574
    This is how I open a webpage from the menu:

    Forms!MainMenu!Item19.HyperlinkAddress = "c:\bookmark.htm"
    Forms!MainMenu!Item19.Hyperlink.Follow
    DoCmd.ShowToolbar "Web", 2

    And with a command button:

    cmdHelp.HyperlinkAddress = "c:\bookmark.htm"
    DoCmd.ShowToolbar "Web", 2

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb Re: Open a .htm file with code

    Originally posted by ready4data
    I want to open a .htm file at the end of my code.
    How do you do this
    Thanks
    Shell("C:\program files\Internet Explorer\IEXPLORE.EXE yourHtmlFile.html ", 1)

  4. #4
    Join Date
    Dec 2003
    Location
    Southeast
    Posts
    3

    Re: Open a .htm file with code

    Thanks to both. I'll see which one works better for me

  5. #5
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb Re: Open a .htm file with code

    Originally posted by ready4data
    Thanks to both. I'll see which one works better for me
    For the shell you should use the Call statement

    call Shell("C:\program files\Internet Explorer\IEXPLORE.EXE yourHtmlFile.html ", 1)

Posting Permissions

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