how to suppress the title in OutputTo' html table?

AlexRigholt

Registered User.
Local time
Tomorrow, 01:14
Joined
Nov 14, 2008
Messages
36
I use

DoCmd.OutputTo acOutputTable, sGroup, acFormatHTML, "c:\Webinventory\" & sGroup & ".htm"

The resulting table starts with a centered title with whatever the sGroup variable contains.

Is there a way to suppress this title?
 
I found this solution:

Const ForReading = 1
Const ForWriting = 2

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("c:\Webinventory\" & sGroup & ".htm", ForReading)

strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, "<CAPTION><B>" & sGroup & "</B></CAPTION>", "<CAPTION></CAPTION>")

Set objFile = objFSO.OpenTextFile("c:\Webinventory\" & sGroup & ".htm", ForWriting)
objFile.WriteLine strNewText
objFile.Close
 

Users who are viewing this thread

Back
Top Bottom