Solved

auto export html

Posted on 2011-03-01
2
464 Views
Last Modified: 2012-05-11
Is there a way to automatically export a report with Html type. i have stored a RunSavedImportExport that when i run it it asks me for Html Output Options.

in vb i have created the command Docmd.RunSavedImportExport "Export-Report1" but it asks me for HTML Output Options. Is there a way to bypass that? or is there any other way of exporting my report to a html format?
0
Comment
Question by:repco
2 Comments
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 35011635
The options exist in the OutputTo command to specify all that.
The code below sends rptMyReport in html to c:\temp\test.html

Private Sub ExportMyReportToHTML()
Dim stdocname As String
Dim FormatValue As String

FormatValue = acFormatHTML
stdocname = "rptMyReport"

DoCmd.OutputTo acOutputReport, stdocname, FormatValue, "c:\temp\test.html", True
End Sub

Open in new window

0
 

Author Closing Comment

by:repco
ID: 35012550
thanks!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question