ACC97: How to Output Horizontal Lines on Report Using OutputToID: Q170980
|
Moderate: Requires basic macro, coding, and interoperability skills.
If you output the data in a report, the only controls that are included in
the output file are text boxes (for .xls output files), or text boxes and
labels (for .rtf, .txt, and .html output files). All other controls are
ignored.
This article demonstrates how you can output the lines in your report by
using the String() function.
The String() function returns the number of characters you specify for the
string. To be able to output lines in a report using the OutputTo()
function, use the String() function as follows:
Sub MyOutPutTo()
DoCmd.OutputTo acOutputReport, "<ReportName>", acFormatTXT, _
"C:\<OutputFileName>"
End Sub
For more information about the String() function, search the Help Index for "String function," or ask the Microsoft Access 97 Office Assistant.
Keywords : kbprg OtpGnrl
Version : 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 6, 1999