Solved

auto export html

Posted on 2011-03-01
2
470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

739 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