Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 31st, 2004, 02:50 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default OutputTo option for HTML file

Hi,

I am trying to send records from a table to an html file. I am trying
to use DoCmd.OutputTo acOutputTable, table1, acFormat.HTML, "c:\template2.html", , "c:\template.html"

but I get an error message that says: object required. I am sure what I'm doing wrong. Any help would be greatly appreciated.

Thanks..Russ

 
Old May 31st, 2004, 10:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

put quotes around the object name, i.e.:
Code:
DoCmd.OutputTo acOutputTable, "table1", acFormat.HTML, "c:\template2.html", , "c:\template.html"
Steven

I am a loud man with a very large hat. This means I am in charge
 
Old May 31st, 2004, 10:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oops - there was a typo in that, due to me copying and pasting. Use
Code:
acFormatHTML
rather than
Code:
acFormat.HTML
I am a loud man with a very large hat. This means I am in charge





Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Check Boxes/Option buttons/Option Group hewstone999 Access VBA 1 March 14th, 2008 07:25 AM
<html:option> question Edward King Struts 2 May 4th, 2006 09:14 AM
docmd.outputto Scripts82 Access VBA 0 March 9th, 2006 04:19 AM
html option value assigned to xsl:variable bergs77 XSLT 2 February 23rd, 2006 02:27 PM
outputto command ajmil11 Access 1 February 1st, 2006 08:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.