Action argument | Description |
|
Object Type | The type of object containing the data to output. Click Table (for a table datasheet), Query (for a query datasheet), Form (for a form or form datasheet), Report, or Module in the Object Type box in the Action Arguments section of the Macro window. You can't output a macro. If you want to output the active object, select its type with this argument, but leave the Object Name argument blank. This is a required argument. The default is Table. |
Object Name | The name of the object containing the data to output. The Object Name box shows all objects in the database of the type selected by the Object Type argument. |
| If you run a macro containing the OutputTo action in a library database, Microsoft Access looks for the object with this name first in the library database, then in the current database. |
Output Format | The type of format you want used to output the data. You can click HTML (*.html), Microsoft ActiveX Server (*.asp), Microsoft Excel (*.xls), Microsoft IIS (*.htx, *.idc), MS-DOS Text (*.txt), or Rich Text Format (*.rtf) in the box. Modules can be output only to MS-DOS text format. Microsoft Internet Information Server and Microsoft ActiveX Server formats are available only for tables, queries, and forms. If you leave this argument blank, Microsoft Access prompts you for the output format. |
Output File | The file you want to output the data to, including the full path. You can include the standard file name extension (.asp, .htm or .html, .htx, .xls, .txt, or .rtf) for the output format you select with the Output Format argument, but it's not required. If you output to Microsoft Internet Information Server or Microsoft ActiveX Server files, Microsoft Access will always create files with the standard .htx and .idc or .asp file name extensions. If you leave the Output File argument blank, Microsoft Access prompts you for an output file name. |