How to add extra code to an acOutputQuery function outputting to html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neelsfer
    Contributor
    • Oct 2010
    • 547

    How to add extra code to an acOutputQuery function outputting to html

    I use the following line to export a query to html.
    Code:
    DoCmd.OutputTo acOutputQuery, "Live_ Race_ Results", "HTML(*.html)", "c:\RTweb\WebResults.html", False, "", 0, acExportQualityScreen
    How can i add the following refresh function to the html code when it is created, when the query is exported.
    Code:
    <meta http-equiv="refresh" content="5" >
    please assist
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    You could open the file as a textstream and then make the required modifications using the FileSystemObjec t in the Windows Script Host Object.

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      Along the same lines as TheSmileyCoder except use the built in
      Code:
      open dirpath$ for append as #1
      print #1 "your text"
      close #1
      http://www.applecore99.com/gen/gen029.asp
      -z

      Comment

      • neelsfer
        Contributor
        • Oct 2010
        • 547

        #4
        Sorry i am a bit lost here. Have you perhaps got an example of code on how to do that please

        Comment

        • Rabbit
          Recognized Expert MVP
          • Jan 2007
          • 12517

          #5
          @neelsfer, zmbd did post example code.

          Comment

          Working...