Microsoft Knowledge Base Email Alertz

(197589) - When you export a data definition query or a SQL pass-through query to HTML format, you may receive the following error message: Microsoft Access The command or action 'OutputTo' isn't available now. You may be in a read-only database or an...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 197589 - Last Review: June 28, 2004 - Revision: 2.0

ACC2000: Exporting SQL Specific Query to HTML Causes Error

This article was previously published under Q197589
Moderate: Requires basic macro, coding, and interoperability skills.

On This Page

SYMPTOMS

When you export a data definition query or a SQL pass-through query to HTML format, you may receive the following error message:
Microsoft Access

The command or action 'OutputTo' isn't available now.

You may be in a read-only database or an unconverted database from an earlier version of Microsoft Access.

The type of object the action applies to isn't currently selected or isn't in the active view.

Use only those commands and macro actions that are currently available for this database.

CAUSE

You cannot export data-definition and SQL pass-through queries that do not return any records to HTML format.

RESOLUTION

Use only queries that return records when you want to export the results to HTML format.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb.
  2. Create a new query in Design view.
  3. Click Close in the Show Table box.
  4. On the Query menu, point to SQL Specific, and then click Data Definition.
  5. In the Data Definition Query dialog box, type the following SQL statement:
    CREATE TABLE MyTable (FirstName TEXT, LastName TEXT);
  6. Save and close the query as Query1.
  7. On the File menu, click Export.
  8. Type Query1 in the File name box. In the Save as type list, click HTML (*.html;*.htm). Click Save.
  9. Click OK.

    Note that you receive the error message mentioned in the "Symptoms" section.

REFERENCES

For more information about exporting queries to HTML format, click Microsoft Access Help on the Help menu, type export a datasheet to static HTML format in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

APPLIES TO
  • Microsoft Access 2000 Standard Edition
Keywords: 
kberrmsg kbprb KB197589
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate