Paul Black
pblack at hotmail.com
Thu Feb 13 20:23:00 CST 2003
Hi
Yes I used that method and came up with a solution that works very well..see
below.
Thanks
Paul
If .EOF = False Then
.MoveLast
intCount = .RecordCount
.MoveFirst
Do Until .EOF = True
strHot = "C:\LINKS\" & !LINK_ST
Me!txtLINK = !LINK_ST
DoCmd.OutputTo acOutputReport, "rptVOLACREHL",
acFormatHTML, strHot & "AC.html", False
DoCmd.OutputTo acOutputReport, "rptVOLHECATREHL",
acFormatHTML, strHot & "HL.html", False
Me!ProgBar.Visible = True
Me!ProgBar.Value = 100 * ((.AbsolutePosition) /
intCount)
.MoveNext
Loop
.Close
End If
>From: Drew Wutka <DWUTKA at marlow.com>
>Reply-To: accessd at databaseadvisors.com
>To: "'accessd at databaseadvisors.com'" <accessd at databaseadvisors.com>
>Subject: RE: [AccessD] Programatically Create an .html file
>Date: Thu, 13 Feb 2003 16:28:46 -0600
>
>You just want a report as an HTML page? Just use OutputTo, to save the
>report as an HTML page.
>
>Drew
>
>-----Original Message-----
>From: Paul Black [mailto:pblack at hotmail.com]
>Sent: Thursday, February 13, 2003 3:36 PM
>To: accessd at databaseadvisors.com
>Subject: [AccessD] Programatically Create an .html file
>
>
>Hi
>
>Is there any way to generate programatically an html file based on a
>report?
>
>I want it to generate an html file for each record in the database based on
>the following:
>
>1) create an html document called [ST_LINK]&".html" based on report
>rptVolume using tblStand as source
>2) deposit the name of 1) into field ST_HTML
>3) contents of name in 2) will only include 1 record using ST_LINK as the
>report linking string.
>4) it will cycle through all records in table to do 1)-3)
>
>The original report is very basic.
>
>Thanks
>
>Paul
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail